The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Sets or retrieves the alignment of the object relative to the display or table.
Syntax
| HTML | <element align="p" ... > |
|---|---|
| JavaScript | |
Property values
Type: String
center
-
Aligns to the center.
justify
-
Aligns to the left and right edge.
left
-
Default. Aligns to the left edge.
right
-
Aligns to the right edge.
Standards information
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
- HTML 4.01 Specification, Section 11.3.2 (Deprecated)
Remarks
The default value for the th element is center.
The justify possible value is available only for the div, hn, and p elements.
See also
Send comments about this topic to Microsoft
Build date: 11/28/2012