Design comparison
Solution retrospective
I don't have any specific questions, but I'm curious of your opinion, if you have something to add!
Community feedback
- @correlucasPosted over 2 years ago
πΎHello Barney, congratulations for your new solution!
Your solution is really amazing, the design details are perfect. There's only a small issue with the card and image responsivity:
See my tips to fix this:
To make the container responsive replace
width: 340px
withmax-width: 340px;
and the container will resize when the screen scales. Do a test to see the difference:.card { max-width: 340px; }
To make your image fully responsive add
display: block
andmax-width: 100%
andobject-fit: cover
to make the image auto-crop when resizing inside the column:img { max-width: 100%; object-fit: cover; display: block; }
π I hope this helps you and happy coding!
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