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

@nachtwurst

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


I really struggled on this. Something about my HTML layout made the elements in the main container feel like they weren't really "attached" to it: they would scale strangely with the size of the window instead. I made the desktop version a fixed size because I couldn't figure out how to get it to scale correctly. The mobile version is fine.

I feel like I changed far more under the @media query than necessary because of all the tweaking I tried to do to get things to scale nicely in desktop mode. I feel like there's probably a simpler way to do it that I'm missing, or just something wrong with the basic layout of my HTML.

Community feedback

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