Submitted almost 2 years ago
Product preview card component using HTML and CSS
@kartikbhaii
Design comparison
SolutionDesign
Community feedback
- @aniket167779Posted almost 2 years ago
- You can use <s > HTML element for a strikethrough on $169.99 and you can use this tutorial for screen reader.(https://www.scottohara.me/blog/2017/04/14/inclusively-hidden.html)
- You can import fonts from Google fonts.
- Use relative units like rem or em as unit for the padding, margin, width values and preferably rem for the font-size values, instead of using px which is an absolute unit.
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin 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