Sets or retrieves a value that indicates the table alignment.
Syntax
| HTML | <element align="p" ... > |
|---|---|
| JavaScript | |
Property values
Type: String
left
-
Aligns to the left edge of the available space.
center
-
Aligns to the center of the available space, which is not necessarily the same as the window.
right
-
Aligns to the right edge of the available space.
Standards information
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
- HTML 4.01 Specification, Section 13.7.4 (Deprecated)
Remarks
If the align property is not set on the object, the table is aligned to the left edge of the available space as a block element. If the property is set to left or right, however, the table is aligned as a "floating" object. Successive text and other elements flow to the right of the table if align is set to left, or to the left of the table if align is set to right. For more information, see the styleFloat property.
See also
Send comments about this topic to Microsoft
Build date: 11/28/2012