CSS strikethrough different color from text?

Posted by gojomo on Stack Overflow See other posts from Stack Overflow or by gojomo
Published on 2009-07-10T03:35:40Z Indexed on 2010/04/11 21:33 UTC
Read the original article Hit count: 377

Filed under:
|
|
|
|

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?

© Stack Overflow or respective owner

Related posts about html

Related posts about css