CSS: Text Decoration: Underline, Overline, Line-Through

By Xah Lee. Date:

text-decoration:underline

text-decoration:overline

text-decoration:line-through

text-decoration:none

syntaxmeaning
text-decoration:underlineunderline
text-decoration:overlineoverline
text-decoration:line-throughline-through
syntaxmeaning
text-decoration:nonenone
text-decoration:inheritinherit from parent
text-decoration:initialbrowser default.

Note: initial value may not be supported by Internet Explorer, as of .

Reference

Text#propdef-text-decoration

Liket it? Put $5 at patreon.

Or, Buy JavaScript in Depth

Ask me question on patreon