CSS text-underline-position property

Description

CSS text-underline-position property specifies the position of underline.

Syntax

text-underline-position : auto | underline

Property values

autoDefault

length value applies indentation as an absolute value. The following demo adds 0px indentation.

text-underline-position: auto;

under

10px value moves the first line of inline content to the right side by 10px absolute value.

text-underline-position: under;

Applicable to

It applies to all elements

#CSS digger
Was this article helpful?

 
We are learning text-underline-position property.
×

Ctrl+D