Javascript Reference
Categories: STYLE

javascript STYLE textIndent

@Aug. 15, 2009, 11:56 a.m.
textIndent Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 2  

 

Read/Write  

Specifies the size of the indent at the first line of a block of inline text (such as a p element). Only the first line is affected by this setting. A negative value can be used to outdent the first line, but be sure the text does not run beyond the left edge of the browser window or frame.

 
Example
 
document.getElementById("firstGraph").style.textIndent = "0.5em";
 
Value

Positive or negative CSS length value as a string.

 
Default

0px


Powered by Linode.