Design comparison
SolutionDesign
Solution retrospective
- Making the card responsive was a bit difficult but I completed it
- I have a space below the card image, I have inspected and checked my code but I can't seem to figure it out
- Please what's the best practice for building a product card
Community feedback
- @ahmedAgawadPosted over 2 years ago
Hello 👋, Nice job on completing this challange.
- To remove the space below the images you can use
display: block
on the image tag itself and if you want to learn more about why this happening you can read this article Removing White Space Below Image Elements - To fix the accessibility issues its better to use
main
tag instead of the div tag as the card container
Hope this helps , Happy Coding 😊😊.
0 - To remove the space below the images you can use
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