HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

text-decoration-thickness

Description

The text-decoration-thickness property for CSS sets the stroke thickness of underlines, overlines, and line-throughs specified on the element with text-decoration-line, and affects all decorations originating from this element even if descendant boxes specify a different thickness.

Syntax

CSS

text-decoration-thickness: value;

JS

object.style.textDecorationThickness = "value";

Values

<'text-decoration-thickness'> = auto | from-font | <length> | <percentage>
auto

Automatically specified by the user agent.

from-font

If the first available font has metrics indicating a preferred underline width, use that width, otherwise behaves as auto.

<length>

Specifies the length using a number followed by a unit of measurement.

<percentage>

Specifies the percentage using a number followed by a percent sign (%).

Initial

auto

Examples

1 · auto

2 · from-font

3 · length

4 · percentage

5 · JS