Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Product preview card component

Tylerdurden230β€’ 120

@TylerDurden230

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


This was pretty easy to do even if i'm still not sure about some spacing. I tried to make it a bit more responsive. Hope I did it well.

Community feedback

Lucas πŸ‘Ύβ€’ 104,440

@correlucas

Posted

πŸ‘ΎHello Tyler, congratulations for your new solution!

Answering your question about spacing:

The best way to manage the spacing in this kind of challenge is by using or gap to make the uniform spacing or give each element a vertical padding separating the content using padding-bottom this way you've really more control using only these two kind of spacing. Note that if you use many paddings like padding top with padding bottom the solution gets really tricky to control, so choose gap for uniform spacing and padding bottom to separate elements with different paddings.

πŸ‘‹ I hope this helps you and happy coding!

Marked as helpful

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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