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

P
Jan 160

@Negligence

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

Boris 2,870

@mkboris

Posted

Nice work Jan, to handle responsive images effectively and ensure optimal loading performance, you can use the picture element combined with srcset and sizes attributes. This approach allows you to specify different images for various screen sizes and resolutions, improving load times and visual quality. Using CSS to hide and show images to display differently on various screen sizes is not part of the best practices. Also, you might want to change the media query declaration for large screen sizes to about 768px. 1440px is just the design's width and not when the layout the layout should change.

Marked as helpful

2

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