Design comparison
SolutionDesign
Community feedback
- @correlucasPosted over 2 years ago
๐พHello Yonas, congratulations for your solution!
I saw that your component is really good done, everything is working properly except the image that's not scaling with the correct proportions.
I've inspected your code and this behavior is due the
height: 30%
you've set for the image div. Here's the fixes I did for your code"main .container .content .image { max-width: 100%; /* height: 31%; */ } img { display: block; max-width: 100%; }
Hope it helps and happy coding!
Marked as helpful1@jonas-alPosted over 2 years ago@correlucas I have already fix the height of the image. Thanks for the help I'm new to this front-end world :D
1
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