Submitted almost 3 years ago
Simple card component using BEM css format
@Jeth0214
Design comparison
SolutionDesign
Solution retrospective
What is the perfect solution to fit an image into its div?
Community feedback
- @meladcodesPosted almost 3 years ago
Hi, you can try giving the image a max-width and max-height of 100% which helps it take all the space inside its container. Hope It helps.
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