ALIGN Attribute | align

HTML (DHTML)

ALIGN Attribute | align Property

Internet Development Index

Sets or retrieves a value that indicates the table alignment.

Syntax

HTML<ELEMENT ALIGN = sAlign... >
Scriptingobject.align [ = sAlign ]

Possible Values

sAlignString that specifies or receives one of the following values.
leftAligns to the left edge of the available space.
centerAligns to the center of the available space, which is not necessarily the same as the browser window.
rightAligns 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 Non-Microsoft link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

TABLE, IFRAME