The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › How to reset text-decoration line-through?
How do I reset text-decoration line-through?
I am aware that one could just switch around and put the “1000 usd” with a class applied for the strikethrough, but I am just curious, shouldn’t text-decoration:none work in this case? Or is that for links only?
Applying “display: inline-block” to the span seems to do the trick.
Related Stack Overflow article:
(I inferred this solution from the second answer.)
So this is a *super* sneaky problem. Technically, it’s working as you want it to. If you remove the `text-decoration: none` you’ll see that the line-through is red.
The black line that you’re seeing is going across the entire `.cart` element. What you need to do is this:
Interesting.. thanks to both of you!