Export (0) Print
Expand All
Expand Minimize

textUnderlinePosition property

Specifies the position of the underline decoration that is set through the IHTMLCSSStyleDeclaration::textDecoration property of the object.

Internet Explorer 9



HRESULT value = object.put_textUnderlinePosition( v);HRESULT value = object.get_textUnderlinePosition(* p);

Property values

Type: BSTR

above (above)

Decoration appears above the text.

below (below)

Decoration appears below the text.

auto (auto)

Default. Internet Explorer 6 and later. Decoration appears above the text if the IHTMLElement::lang attribute is set to ja, which is the language code abbreviation for the Japanese language, and the IHTMLCSSStyleDeclaration::writingMode attribute is set to tb-rl, which causes vertical inline text progression. If not, the decoration appears below the text.

auto-pos (auto-pos)

Internet Explorer 6 and later. Identical to auto.

String format

above | below | auto | auto-pos

CSS information

Applies ToAll elements
Initial Value


Windows Internet Explorer 8. The IHTMLCSSStyleDeclaration::textUnderlinePosition attribute is an extension to CSS, and can be used as a synonym for text-underline-position in IE8 Standards mode.

This property specifies the position of the underline decoration. To turn the decoration on or off, use the IHTMLCSSStyleDeclaration::textDecoration property.

The position of the underline decoration is relative to the layout of the text in the object. With vertical text, it is more accurate to say that the above value causes the underline decoration to be laid out before the text or that the decoration appears before the text. With the below value, then, the decoration appears after the text.

In Internet Explorer 6, The auto and auto-pos values apply to this property as of Internet Explorer 6. The default value of this property is auto as of Internet Explorer 6. With Microsoft Internet Explorer 5.5, the default value of this property is below.


Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]







See also

CSS Text Level 3



Community Additions

© 2014 Microsoft