pNN 6 IE 4 DOM 1  

  

The p object reflects the p element.

 
HTML Equivalent
 
<p>
 
Object Model Reference
 
[window.]document.getElementById("elementID")
 
Object-Specific Properties
 
align
 
Object-Specific Methods

None.

 
Object-Specific Event Handler Properties

None.

alignNN 6 IE 4 DOM 1  

Read/Write  

Determines how the paragraph text is justified within the p element's box.

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

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

 
Default

left