HTML Dog
Skip to navigation

CSS Property: text-decoration-line

The text existence and placement of text decoration, under, above, or through text.

Possible Values

ValueDescriptionExample
noneNo line.
underlineLine underneath text.
overlineLine above text.
line-throughStrikethrough. Line through the middle of text.
[Multiple]A space-separated list of decorations.underline overline
inherit
initial
unset

Example


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

Browser support

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