Design comparison
Solution retrospective
Image ddint show before i set an height with either px or vh, but it ddint work with %. I wonder if any one have a fix for that? Other wise thanks for review :)
Community feedback
- @vanzasetiaPosted over 3 years ago
👋Hi Heritier Akilimali! My name is Vanza!
The reason for the image didn't show up, it's because there are no content inside
<div id="container-img"></div>
.Since it's set to
background-image
theheight
will follow theheight
of the content. So, the solution for this is you have to addheight
to yourcontainer-img
in order the image to show.That's it! Hopefully this is helpful!
Happy Coding!
Marked as helpful0@heritioPosted over 3 years ago@vanzasetia Thanks for the feedback and tips, il try that one out cause it sounds logical.
0
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