This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

text-underline-position

Summary

Unsupported.

This property will add a underline position value to the element that has an underline defined.

Overview table

Initial value
auto
Applies to
All elements
Inherited
Yes
Media
visual
Computed value
as specified
Animatable
No

CSS Object Model Property
:

Percentages
N/A

Syntax

Values

auto
Decoration appears above the text.
alphabetic
The underline is positioned relative to the alphabetic baseline. In this case the underline is likely to cross some descenders. Decoration appears below the text.
under
The underline is positioned under the element’s text content. In this case the underline usually does not cross the descenders. (This is sometimes called “accounting” underline.) This value can be combined with ‘left’ or ‘right’ if a particular side is preferred in vertical writing modes.
left
In vertical writing modes, the underline is aligned as for ‘under’, except it is always aligned to the left edge of the text. If this causes the underline to be drawn on the “over” side of the text, then an overline also switches sides and is drawn on the “under” side.
right
In vertical writing modes, the underline is aligned as for ‘under’, except it is always aligned to the right edge of the text. If this causes the underline to be drawn on the “over” side of the text, then an overline also switches sides and is drawn on the “under” side.

Related specifications

CSS Text Decoration Module Level 3
Working Draft

See also

Related articles

Text

Related pages

Attributions