Quantcast
Channel: CSS strikethrough different color from text? - Stack Overflow
Viewing all articles
Browse latest Browse all 17

Answer by Evan Lévesque for CSS strikethrough different color from text?

$
0
0

This can be achieved by placing a span inside an element and assigning each a distinct color.

<s style="color: red;"><span style="color: black;">Lorem ipsum dolor sit amet</span></s>

Viewing all articles
Browse latest Browse all 17

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>