Easy Tutorial
❮ Jsref Obj Boolean Prop Element Clientwidth ❯

textDecorationColor Property

Style Object

Example

Change the color of the underline in underlined text:


Definition and Usage

The textDecorationColor property specifies the color of the text decoration (underline, overline, line-through).

Note: The textDecorationColor property only works on elements with visible text-decoration.


Browser Support

Almost all major browsers do not support the textDecorationColor property.

Firefox supports an alternative property, MozTextDecorationColor.


Syntax

Return the textDecorationColor property:

Set the textDecorationColor property:

Property Values

Value Description
color Specifies the color of the text decoration.
initial Sets this property to its default value. See initial
inherit Inherits this property from its parent element. See inherit

Technical Details

Default value: currentColor
Return value: A string, representing the text-decoration-color property of the element.
--- ---
CSS Version CSS3
--- ---

Related Articles

CSS Reference: text-decoration-color Property


Style Object

❮ Jsref Obj Boolean Prop Element Clientwidth ❯