Name
text-decoration — IE4 P/P | IE5 P/P | NN4 Q/Q | Op3 P/-
Synopsis
This property sets certain effects on
the text, such as underline
and
blink
. These decorations will “span”
child elements that do not have text decoration defined; see Chapter 4 for more details. Combinations of the values
are legal.
User agents are not required to support the value
blink
, and in fact only Netscape Navigator 4.x
does so.
Example
U {text-decoration: underline;} .old {text-decoration: line-through;} U.old {text-decoration: line-through underline;}
Values
none
| [ underline
||
overline
|| line-through
|| blink
]
Default
none
Inherited
no
Applies to
all elements
Get Cascading Style Sheets: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.