Design comparison
SolutionDesign
Solution retrospective
Need a suggestion related to image
Community feedback
- @olesiakissaPosted almost 3 years ago
Hi @amandeep2603!
It looks like the issue is caused by the
align-items: center
in your.card
rule. I would suggest you to remove it or simply explicitly set it tostretch
instead. This way you won't need to useheight: auto
on the image element.Hope this helps :) Good luck!
Marked as helpful1
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