B.110. text-decoration

This property lets you add one or more "decorations" to the text within an element. Decorations include overlining, underlining, striking through, and blinking.

Although this property is not inherited, specifying it on an element will apply the decoration through the whole element, including child elements.

Inherited: No

B.110.1. Value

This property can be set to none to remove any decoration specified in a lower-priority rule (e.g. to remove the underline applied to hyperlinks in the default style sheets of visual browsers).

Otherwise, it can take any space-delimited combination of the following constants:

  • blink[12]

    [12] The author begs you not to use this.

  • line-through

  • overline

  • underline

Initial value: none

B.110.2. Compatibility ...

Get HTML Utopia: Designing Without Tables Using CSS 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.