Design comparison
SolutionDesign
Solution retrospective
Please Review this code and give me your valuable feedback.
Community feedback
- @MariusG1991Posted 10 months ago
Hi, U can set
img{ height: 100%; // to fill empty space on top and bottom object-fit: cover; // to maintain its aspect ratio while filling the element's entire content box }
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