Design comparison
SolutionDesign
Solution retrospective
I can't add background-image in CSS. Please tell me how to do it.
Community feedback
- @Isaiah-BPosted about 2 years ago
Hi Jake! You're pretty close to solving it! One way you can place your background is to create a div element in place of your current img, position it absolutely to the bottom of the body, and style its width and height to the proper dimensions. Then you can set its background image property to your image using the 'url' function. Also, don't forget to give it a low z-index so it doesn't get in the way of your other elements.
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord