text-decoration | NN 4 IE 4 CSS 1
| Inherited: No
Specifies additions to the text content of the element in the form of underlines, strikethroughs, overlines, and (in Navigator and CSS) blinking. You may specify more than one decoration style by supplying values in a space-delimited list. Although Internet Explorer 4 accepts the blink value, it does not blink the text. Navigator 4, on the other hand, does not recognize the overline decoration. Text decoration has an unusual parent-child relationship. Values are not inherited, but the effect of a decoration carries over to nested items. Therefore, unless otherwise overridden, an underlined P element underlines a nested B element within, for example.
CSS Syntax text-decoration: decorationStyle | none
JavaScript Equivalent textDecoration
Value In addition to none, any of the following four constants: blink | line-through | overline | underline. Navigator 4 does not observe the overline value.
Initial Value none
Example DIV.highlight {text-decoration: underline}
Applies To All elements.
Object Model Reference
IE | [window.]document.all.elementID.style.textDecoration [window.]document.all.elementID.style.textDecorationBlink [window.]document.all.elementID.style.textDecorationLineThrough [window.]document.all.elementID.style.textDecorationNone [window.]document.all.elementID.style.textDecorationOverLine [window.]document.all.elementID.style.textDecorationUnderline