CSS text-underline-position Property Reference

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

CSS text-underline-position Property Reference

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

Updated 2026-08-12

text-underline-position overview

The CSS text-underline-position 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-position formal syntax
FieldValue
Formal syntaxauto | from-font | [ under || [ left | right ] ]
Initial valueauto
Applies toallElements
InheritedYes
Percentagesno
Computed valueasSpecified
Animation typediscrete
Mediavisual
Specification groupCSS Text Decoration
StatusStandard

Practical examples

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

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

Description

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

References

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

Similar or alternative tools

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