CSS text-decoration-line property

Description

CSS text-decoration-line property defines the type of text decoration lines i.e. the position of lines relative to text. The following are the types of text decorations.

Syntax

text-decoration-line : none | underline | overline | line-through

Property values

noneDefault

In this case, there is no text-decoration line.

text-decoration-line: none;

underline

defines a line below the text.

text-decoration-line: underline;

overline

defines a line above the text.

text-decoration-line: overline;

line-through

It represents a line passing through the middle of text horizontally.

text-decoration-line: line-through;

Applicable to

It applies to all elements

#CSS digger
Was this article helpful?

 
arrow
We are learning text-decoration-line.
×

Ctrl+D