CSS text-decoration-thickness Property


The text-decoration-thickness CSS property specifies the thickness of the decoration line used on text in an element. To reflect the thickness property, the text-decoration-line value must be either underline, line-through, or overline.

Syntax

Example

Preview

Property Values

Value Description
auto The thickness of the decoration line is determined by the browser.
from-font If the font file specifies a preferred thickness, use that value. If not, act like an auto.
length/percentage The thickness is specified as a length or as a percentage.
initial This property is set to its default value.
inherit This property is inherited from its parent element.

Supported Browsers

Property Chrome Firefox Safari Edge / IE Opera
text-decoration-thickness 89.0 70.0 12.1 89.0 75.0