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 using html and css

@codewithmide

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


The mobile view took me more than 4 hours just because I forgot that there is a separate image for mobile.

Community feedback

Eduardo 910

@KTrick01

Posted

Hi!, try to use:

background-position: center;
background-size: cover;

In your .Image class, this will fix the weird behavior that it has, hope that it helps!

Marked as helpful

0

@codewithmide

Posted

@KTrick01 Thank you so much it worked as expected!!

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