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

girldocode 260

@girldocode

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


Media query and image(background) sizing was challenging part.

Should I use background image or image tag. I used image tag, then I removed so which one is best practice?

Community feedback

@devaramnye

Posted

As there are two images, for mobile and desktop - I would recommend you to use <picture></picture> in your HTML document.

Here you can read about the The picture element

1

girldocode 260

@girldocode

Posted

@devaramnye I have used only image and I styled it using media query. Thanks for commenting.

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