javascript STYLE textAlign

textAlignNN 6 IE 4 DOM 2  

Read/Write  

Determines the horizontal alignment of text within an element's box.

 
Example
 
document.getElementById("myDIV").style.textAlign = "right";
 
Value

One of the four constants (as a string): center | justify | left | right.

 
Default

Depends on default language of the browser.


1906,Nickname,Homepage or email,Comments here,Add comment