CSS strikethrough different color from text?
- by gojomo
The HTML elements del or strike, and the CSS text-decoration property with a value line-through, may all be used for a text strike-through effect. Examples:
<del>del</del>
...gives: del
<strike>strike</strike>
....gives: strike
<span style='text-decoration:line-through'>
text-decoration:line-through
</span>
...will also look the same as: text-decoration:line-through
However, the strikethrough line is typically the same color as the text.
Can CSS be used to make the line a different color?