text-underline-position property
Specifies the position of the underline decoration.
This property offers a refinement for underlined text content.
For a cross-browser solution, use text-decoration property to change whether the element is underlined or overlined.
The text-underline-position property has effect only if the value of the text-decoration property is set to 'underline'.JavaScript page for this property: textUnderlinePosition. You can find other example(s) there. |
Possible values:
One of the following values:
Underline is above the text. | |||||||
Underline is below the text, or above if lang attribute is set to 'ja' (japanese) and writing-mode property is set to 'tb-rl'. | |||||||
Same as auto. IE6 and later. | |||||||
Underline is below the text. |
Default: auto.
Example HTML code 1:
This example illustrates the use of the text-underline-position property:
|
||||
<head> <style> .example { text-decoration: underline; text-underline-position: above; } </style> </head> <body> <p id="sample" class="example">text underline position</p> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
a, abbr, acronym, address, b, baseFont, bdo, big, blockQuote, body, button, caption, center, cite, code, col, colGroup, dd, del, dfn, dir, div, dl, dt, em, fieldSet, font, form, H1, H2, H3, H4, H5, H6, html, i, input:button, input:file, input:password, input:reset, input:submit, input:text, ins, isIndex, kbd, label, legend, li, listing, marquee, menu, nobr, ol, p, pre, q, rt, ruby, s, samp, select, small, span, strike, strong, sub, sup, table, tBody, td, textArea, tFoot, th, tHead, tr, tt, u, ul, var, xml, xmp
Related pages:
color
font
font-family
font-size
font-size-adjust
font-style
font-variant
font-weight
text-align
text-align-last
text-autospace
text-decoration
text-indent
text-justify
text-kashida-space
text-overflow
text-shadow
text-transform
text-underline-position
font
font-family
font-size
font-size-adjust
font-style
font-variant
font-weight
text-align
text-align-last
text-autospace
text-decoration
text-indent
text-justify
text-kashida-space
text-overflow
text-shadow
text-transform
text-underline-position
External links:
User Contributed Comments