Menu Riverview Church

TEXT-DECORATION-THICKNESS

The text-decoration-thickness property 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

AUTO

FROM-FONT

LENGTH

PERCENTAGE

JS

INTERNAL

text-decoration

text-decoration-color

text-decoration-line

text-decoration-skip-ink

text-decoration-style

EXTERNAL

World Wide Web Consortium (W3C)