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

K 80

@lilythelily

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 challenges did you encounter, and how did you overcome them?

Responsive image was too difficult for me. I couldn't figure out how to use a different image for a different screen size.

Community feedback

@SvitlanaSuslenkova

Posted

You can add 2 images in your html and control them with css. For example, .image-mobile {display: block}, .image-desktop {display: none}, after @media you can switch display. Hope you found this comment helpful :)

Marked as helpful

1

K 80

@lilythelily

Posted

Thank you, @SvitlanaSuslenkova , for your advice! I will definitely try that :)

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