CSS text-model-color property

CSS text-model-color property CSS reference manual


Change the color of the underscore in the underscore text:

p
{
text-decoration: underline;
text-decoration-color: red;
-moz-text-decoration-color: red; / * For Firefox code * /
}

Try it out . . .

Browser support

CSS text-model-color property

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

Firefox supports another property that replaces this property, the -moz-text-color property.


Definitions and usages

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

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

Default: currentColor
Inherited: Whether
Animated: Is. See Animation . Give it a try
Version: CSS3
JavaScript syntax: object .style.textDecorationColor="red" Give it a try


CSS syntax

text-decoration-color: color |initial|inherit;

The property value

value describe test
color Specify the color of text modification. test "
initial Set this property for its default value.See initial test "
inherit Inheriting this property from the parent element.See inherit

CSS text-model-color property CSS reference manual