Product preview card component built using basic HTML and CSS

Please log in to post a comment
Log in with GitHubCommunity feedback
- P@pete13232
Your code structure is excellent — really clean and easy to follow. Great job! 👏
As an optional idea (nothing critical at all), you could also consider using a <picture> element for responsive images in case you want to serve different sizes for different screens:
<picture> <source media="(min-width:<screen-size>)" srcset=""> <img src="" alt=""> </picture>
But honestly, the current approach already works well. Just wanted to share another option!
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