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

text-decoration-trim

Description

The text-decoration-trim property for CSS adjusts the start and end points of line decorations, allowing the author to shorten, lengthen, or shift the decoration with respect to the text.

It controls all text decoration lines drawn by this decorating box, but not any text decoration lines drawn by its ancestors. If two component values are given, the first applies to the start and the second to the end.

Syntax

CSS

text-decoration-trim: value;

JS

object.style.textDecorationTrim = "value";

Values

<'text-decoration-trim'> = <length>{1,2} | auto
<length>

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

auto

Automatically specified by the user agent.

Initial

0

Examples

1 · auto

2 · length

3 · JS