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 with html and vanilla css

P

@JacobKnittle

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 are you most proud of, and what would you do differently next time?

making something with a mobile first approach

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

using srcset on an image to use multiple images depending on the screen size

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

the photo seems to switch to the desktop layout when on mobile when resizing the screen even though it is under 1440p. If there is a way to prevent that from happening it would be appreciated if there is an alternative.

Community feedback

P
WebDevJoe 70

@JoeWebDevelopment

Posted

Just from looking at the code, you made a set width on a lot of things. I made mine a set min/max width to get the responsivity that might help some with the issue of the image. I also would have used flex, or grid on the card container.

0
P
WebDevJoe 70

@JoeWebDevelopment

Posted

Just from looking at the code, you made a set width on a lot of things. I made mine a set min/max width to get the responsivity that might help some with the issue of the image. I also would have used flex, or grid on the card container.

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