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

@sarvdavoudi

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,460

@Lo-Deck

Posted

Hi well done for this challenge,

It's better to use em or rem instead of px. FreeCodeCamp. FreeCodeCamp.

You can use picture tag to display different image depending on the size. Here a link : MDN.

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

It's easier to start with a mobile-approach FreeCodeCamp.

Hope to be helpful.

0

@VaibhavSain

Posted

you are using different colors from the design instead use color picker by design image

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