HTML Dog
Skip to navigation

CSS Property: text-decoration-color

Sets the color of the text decoration established by text-decoration-line.

Possible Values

ValueExample
[color]rgba(0,0,0,.4)
inherit
initial
unset

Example


a:hover {
    text-decoration-line: line-through;
    text-decoration-color: red;
}

Browser support

Can I Use text-decoration? Data on support for the text-decoration feature across the major browsers from caniuse.com.