Click to Rate and Give Feedback
Properties
 align Property
ALIGN Attribute | align Property

Sets or retrieves a value that indicates the table alignment.

Syntax

HTML<ELEMENT ALIGN = sAlign... >
Scripting[ sAlign = ] object.align

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 World Wide Web link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 World Wide Web link.

Applies To

TABLE, IFRAME
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker