ALIGN Attribute | align Property

Internet Development Index

Sets or retrieves the alignment of the caption or legend.

Syntax

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

Possible Values

sAlignString that specifies or receives one of the following values.
bottomAligns bottom-center.
centerAligns center.
leftAligns left.
rightAligns right.
topAligns top-center.

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

The legend tag is used only within a fieldSet tag. The contents of the legend tag are displayed by overwriting the information in the top border of the fieldSet.

The caption tag is used only within a table tag. Its contents are displayed centered above the table and do not interact with the table border.

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

CAPTION, LEGEND