CSS TEXT-UNDERLINE-POSITION

Sets or retrieves the position of the underline decoration that is set through the textDecoration property of the object.

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 Internet Explorer 5.5, the default value of this property is below.

Examples
1
2
3
4
p {
  text-underline-position: above;
  text-decoration: underline
}
1
2
3
4
<p style="text-underline-position: above;
  text-decoration: underline"
>
    content
</p>

Possible Values

inherit: Explicitly sets the value of this property to that of the parent.
length: Defines a fixed indentation.
%: Defines an indentation in % of the width of the parent element.