The text-underline-position CSS property specifies the position of the underline which is set using the text-decoration property's underline value.
|Applies to||all elements|
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.