Click to return to the DHTML, HTML     
ALIGN Attribute | align P...     ALINK Attribute | aLink P...     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

ALIGN Attribute | align Property


Sets or retrieves the alignment of the object relative to the display or table.

Syntax

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

Possible Values

sAlign String that specifies one of the following values:
centerAligns to the center.
justifyAligns to the left and right edge.
leftAligns to the left edge.
rightAligns to the right edge.

The property is read/write with a default value of left.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.

Remarks

The default value for the TH element is center.

The justify possible value is available only for the DIV, Hn, and P elements.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:

COL, COLGROUP, DIV, Hn, HR, P, TBODY, TD, TFOOT, TH, THEAD, TR



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.