Javascript Reference
Categories: STYLE

javascript STYLE textUnderlinePosition

@March 15, 2008, 1:22 a.m.
textUnderlinePositionFirefox/Netscape/NN n/a IE 5.5(Win) Chrome/Safari/DOM n/a  

Read/Write  

Controls whether an underline (i.e., an element with a text-decoration style set to underline) is rendered above or below the text.

 
Example
 
document.getElementById("heading").style.textUnderlinePosition = "above";
 
Value

IE 5.5 recognizes two constant values: above | below. IE 6 adds the values auto and auto-pos (which appear to do the same thing). The default value also changed between versions, from below to auto. In IE 6, the auto value underlines vertical Japanese text "above" (to the right) of the characters.

 
Default

none (IE 5.5); auto (IE 6).


Powered by Linode.