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

ALIGN Attribute | align Property


Sets or retrieves how the object is aligned with adjacent text.

Syntax

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

Possible Values

sAlign String that specifies one of the following values:
absbottomAligns the bottom of the object with the absolute bottom of the surrounding text. The absolute bottom is equal to the baseline of the text minus the height of the largest descender in the text.
absmiddleAligns the middle of the object with the middle of the surrounding text. The absolute middle is the midpoint between the absolute bottom and text top of the surrounding text.
baselineAligns the bottom of the object with the baseline of the surrounding text.
bottomAligns the bottom of the object with the bottom of the surrounding text. The bottom is equal to the baseline minus the standard height of a descender in the text.
leftAligns the object to the left of the surrounding text. All preceding and subsequent text flows to the right of the object.
middleAligns the middle of the object with the surrounding text.
rightAligns the object to the right of the surrounding text. All subsequent text flows to the left of the object.
texttopAligns the top of the object with the absolute top of the surrounding text. The absolute top is the baseline plus the height of the largest ascender in the text.
topAligns the top of the object with the top of the text. The top of the text is the baseline plus the standard height of an ascender in the text.

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

For the INPUT object, this attribute applies only to the image type. It is undefined for all other types.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
APPLET, EMBED, FIELDSET, IFRAME, IMG, INPUT type=image, OBJECT, SELECT


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.