Product preview card component

Solution retrospective
I had a bit of a challenge with the showcasing different images in different widths. It was solved by giving the image element a srcset attribute and specifying the width of each image.
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@johnnygerard
There is a mismatch with your breakpoint. You should use the same value.
You used
650px
for the media query in your CSS and600px
forsizes
attribute in your HTML.Marked as helpful
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