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.
Source: http://www.savio.no/artikler/a/335/different-font-color-than-line-through-color-with-css