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-component

yznabuz 120

@yznabuz

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

P
Lo-Deck 2,020

@Lo-Deck

Posted

Hi well done for this challenge.

You should try to make your website with a mobile-first approach.freecodecamp.org. I find it's easier to use this way.

For the images it's better to use <picture>

<picture>
<source media="(max-width: 799px)" srcset="your path" >
<source media="(min-width: 800px)" srcset="your path" >
<img src="your path" alt="your description" >
</picture>

Here a link.Mozilla mdn.

Hope to helpful.

Marked as helpful

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