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

@AbubakarImam

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


Making the card responsive gave me a very hard time, need tips on how to make things responsive in a simpler way

Community feedback

Hyron 5,870

@hyrongennike

Posted

Hi @AbubakarImam,

Nice job on your first attempt of the challenge

You can remove this h-\[90\%\]. Add flex on the main tag to center the card. For the images to keep there aspect ration and not look squeezed or stretched add this class on the images object-cover.

Instead of h-screen you min-h-screen on the main tag to prevent overflow issues.

Hope this is helpful

1

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