CSS Property: text-decoration-line
The text existence and placement of text decoration, under, above, or through text.
Possible Values
Value | Description | Example |
---|---|---|
none | No line. | |
underline | Line underneath text. | |
overline | Line above text. | |
line-through | Strikethrough. 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; }