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

display flex and picture tag

@KomisarzRex

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


What challenges did you encounter, and how did you overcome them?

I had a problem with changing the photo depending on the resolution, but the picture tag helped me.

What specific areas of your project would you like help with?

I still have a problem making the website responsive.

Community feedback

duongns-vn 210

@duongns-vn

Posted

You can use flexbox-direction for .product-card , along with using object-fit:cover, object-postion: center for images, which will make operations faster and the code shorter. Try your best, my friend

Marked as 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