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

Responsive product-preview-card-component using Flexbox.

@London-Joe

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


The switching between the different viewports while maintaining the structure of the design was a bit tricky for me, but I managed to solve that issue even though I don't think the method I used was the best practice.

Community feedback

P
Vivek 150

@tweetandcode

Posted

Hey saw your solution, looks great.

One suggestion, instead of <img> tag, try <picture> tag, this will load only one of the two images(depending on if it is a mobile or desktop).

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture.

Hope this helps.

Marked as helpful

1

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