My html is:
<html>
<body>
<div id="example">this is example</div>
</body>
<html>
My css is:
#example{text-decoration: line-through;color:#ccc;}
I am getting out-put like this
but I want like this
but I can't. Help me to do like this.
Color applies to the line through and text. You need to nest like.
<span style="text-decoration: line-through; color: red;">
<span style="color: #CCC;">text with red linethrough and black text</span>
</span>
Source: http://www.savio.no/artikler/a/335/different-font-color-than-line-through-color-with-css
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With