CSS text-underline-offset Property Reference

The CSS text-underline-offset property is a standard property in CSS Text Decoration. Review its formal syntax, computed behavior, and practical declarations.

CSS text-underline-offset Property Reference

The CSS text-underline-offset property is a standard property in CSS Text Decoration. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

text-underline-offset overview

The CSS text-underline-offset property is a standard property in CSS Text Decoration. Review its formal syntax, computed behavior, and practical declarations.

The computed value normally inherits from the parent element when no declaration wins the cascade.

Syntax and formal definition

text-underline-offset formal syntax
FieldValue
Formal syntaxauto | <length> | <percentage>
Initial valueauto
Applies toallElements
InheritedYes
PercentagesreferToElementFontSize
Computed valueasSpecified
Animation typebyComputedValueType
Mediavisual
Specification groupCSS Text Decoration
StatusStandard

Practical examples

These declarations demonstrate valid ways to set text-underline-offset. The initial and inherit global keywords remain available even when a property-specific value is preferable.

text-underline-offset live example
CSS .reset-example { text-underline-offset: initial; } .inherit-example { text-underline-offset: inherit; } @supports (text-underline-offset: initial) { .supported { text-underline-offset: initial; } }

Description

The CSS text-underline-offset property is a standard property in CSS Text Decoration. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: text-underline-offset
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies