Submitted about 1 year ago
Responsive Grid based product preview component
@Pradyumna-Hegde
Design comparison
SolutionDesign
Solution retrospective
Any other approach instead of the usage of the <s> (strike through) tag which isn't accessible?
Community feedback
- @hanzala-bhuttoPosted about 1 year ago
instead of using <s></s> tag or any other approach involving html, it is better to use css style properties to achieve the same effect: You can apply the following css property on your p tag:
For Your Tag:
- <p class="product__original-price">$169.99</p>
CSS Style:
.product__original-price{
text-decoration: line-through;
}
you can find proper examples for this css property here:
Great Work by the Way !
0
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