Home   All Products  |   Support  |   Search  | Home  

Microsoft Typography | Typography on the Web | Specifying... | 5.4.3 'text-decoration' next

5.4.3 'text-decoration'

Value: none | [ underline || overline || line-through || blink ]
Initial: none
Applies to: all elements
Inherited: no, but see clarification below
Percentage values: N/A
Microsoft® Internet Explorer 3.0 support: partial. Blink and overline are not supported in Microsoft Internet Explorer 3.
Microsoft Internet Explorer 4.0 support: partial. Blink is not supported in Microsoft Internet Explorer 4.

This property describes decorations that are added to the text of an element. If the element has no text (e.g. the 'IMG' element in HTML) or is an empty element (e.g. '<EM></EM>'), this property has no effect. A value of 'blink' causes the text to blink.

The color(s) required for the text decoration should be derived from the 'color' property value.

This property is not inherited, but elements should match their parent. E.g., if an element is underlined, the line should span the child elements. The color of the underlining will remain the same even if descendant elements have different 'color' values.

A:link, A:visited { text-decoration: underline }

The example above would underline the text of all links (i.e., all 'A' elements with a 'HREF' attribute).

UAs must recognize the keyword 'blink', but are not required to support the blink effect.

Dark blue text is taken from Cascading Style Sheets, level 1. W3C Recommendation 17 December 1996 -

this text [ext link] signifies an external link, please read our disclaimer.

this page was last updated 2 December 1997
© 1997 Microsoft Corporation. All rights reserved. Terms of use.
comments to the MST group: how to contact us


Microsoft Typography | Typography on the Web | Specifying... | 5.4.3 'text-decoration' next