CSS · Properties — CSS Text Decoration

text-decoration-inset

The CSS text-decoration-inset property. Initial value: 0. Not inherited.

Syntax
text-decoration-inset: <length-percentage>{1,2} | auto

Example

Try it

Notes

Media: visual. Applies to: allElements. Computed value: absoluteLengthOrKeyword.

More in this group

text-decoration-color text-decoration-line text-decoration-skip text-decoration-skip-ink text-decoration-style text-decoration-thickness text-emphasis text-emphasis-color

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course