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 using desktop first work flow

@Abu-Sman

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


Feedback is always appreciated!

Community feedback

hitmorecode 6,230

@hitmorecode

Posted

Nice well done. Next time switch your workflow and go for mobile first. When you need to swap images like in this challenge, it's best to use the <picture> element.

Marked as helpful

0

@Abu-Sman

Posted

@hitmorecode I really appreciate your feedback. I'd never heard of the <picture> element before, but I just read about it on MDN and discovered that it was designed specifically for this purpose. Thank you once more; this is extremely useful.

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