Javascript Reference
Categories: H1

javascript H1 align

@July 7, 2008, 4:32 a.m.
align Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

 

Read/Write  

Defines the horizontal alignment of the H1 element within its surrounding container.

 
Example
 
document.getElementById("myHeader").align = "center";
 
Value

Any of the three horizontal alignment constants: center | left | right.

 
Default

left


Powered by Linode.