ALIGN Attribute | align Property | Internet Development Index |
Sets or retrieves a value that indicates the table alignment.
Syntax
HTML <ELEMENT ALIGN = sAlign... > Scripting object.align [ = sAlign ]
Possible Values
sAlign String that specifies or receives one of the following values.
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 browser window. right Aligns to the right edge of the available space. The property is read/write. The property has no default value.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.
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.
Standards Information
This property is deprecated in HTML and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
TABLE, IFRAME