
The Complete Idiot's Style Sheets Reference
| Index
| Current Category: Text |
| Previous Style: text-align
| Next Style: text-indent
|
text-decoration
Formats text with various effects.
Support:
-
Notes:
- This style replaces the HTML <U> tag.
Possible Values:
- blink
Formats text as blinking.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
Not supported |
Not supported |
4.0 and later |
- line-through
Formats text with a line through the middle.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS1 and later |
3.0 and later |
4.0 and later |
-
Notes:
-
This is usually called strikethrough text. Most people use this style to represent text that's been "deleted" from a document.
- none
Renders the text without any decorative effect.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS1 and later |
3.0 and later |
4.0 and later |
-
Notes:
- overline
Formats text with a line over the top.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS1 and later |
4.0 and later |
6.0 and later |
- underline
Formats text with an underline.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS1 and later |
3.0 and later |
4.0 and later |
Example:
<H2 STYLE="text-decoration: none">None</H2>
<H2 STYLE="text-decoration: line-through">Line-through</H2>
<H2 STYLE="text-decoration: overline">Overline</H2>
<H2 STYLE="text-decoration: underline">Underline</H2>
How It Looks:
None
Line-through
Overline
Underline
| Index
| Current Category: Text |
| Previous Style: text-align
| Next Style: text-indent
|
|