text-underline-position

The text-underline-position CSS property specifies the position of the underline which is set using the text-decoration property's underline value.

Example

Initial value auto
Applies to all elements

Syntax

  
text-underline-position: under;
  

Values

The user agent uses its own algorithm to place the line at or under the alphabetic baseline.
If the font file includes information about a preferred position, use that value. If the font file doesn't include this information, behave as if auto was set, with the browser choosing an appropriate position.
Forces the line to be set below the alphabetic baseline, at a position where it won't cross any descenders. This is useful for ensuring legibility with chemical and mathematical formulas, which make a large use of subscripts.
In vertical writing-modes, this keyword forces the line to be placed on the left side of the text. In horizontal writing-modes, it is a synonym of under.
In vertical writing-modes, this keyword forces the line to be placed on the right side of the text. In horizontal writing-modes, it is a synonym of under.
A synonym of auto, which should be used instead.
Forces the line to be above the text. When used with East-Asian text, using the auto keyword will lead to a similar effect.
Forces the line to be below the text. When used with alphabetic text, using the auto keyword will lead to a similar effect.

Browser support

text-underline-position33127462012.1
above_below12746
auto-pos126
from-font878774
left_right71797458
under3379742012.1

We use cookies to improve your experience. Learn more in our Privacy policy.

×