Easy Tutorial
❮ Css3 Pr Flex Direction Pr Border Top ❯

CSS text-decoration-color Property

CSS Reference Manual

Example

Change the color of the underline in underlined text:


Browser Support

Almost all major browsers do not support the text-decoration-color property.

Firefox supports an alternative property, -moz-text-decoration-color.


Definition and Usage

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

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

Default value: currentColor
Inherited: no
--- ---
Animatable: yes. See Animatable Try it
--- ---
Version: CSS3
--- ---
JavaScript syntax: object.style.textDecorationColor="red" Try it
--- ---

CSS Syntax

Property Values

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

CSS Reference Manual

❮ Css3 Pr Flex Direction Pr Border Top ❯