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

feldspar58 160

@feldspar58

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

Eugen 200

@psdesignro

Posted

Nice work! I remember this challenge was harder than expected at first sight.

You should use a relative unit (rem or %) for line height also, or downsize a bit the product title. Check too the font weight, because it seems to be thinner for title and button label.

Also it look like because you used height: auto, it doesn't fill the entire height, and you have a strange margin on top and bottom. You can set the height to 100%, and let the width on auto, also set the object-fit:cover.

Keep up the good work!

Marked as helpful

0

@centralparkshark

Posted

Looks awesome! For border-radius you can set individual corners to have different values (border-radius: 8px 0 0 8px)

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