Name

ALIGN — NN 2 IE 3 HTML 3.2

Synopsis

ALIGN=”alignmentConstant"

Optional

The ALIGN attribute determines how content wrapped by the DIV element is aligned within the context of the DIV element. This attribute is deprecated in favor of the text-align style sheet attribute. Even so, you can use this attribute for backward compatibility with non-CSS-compliant browsers. This is the element and attribute you can use to substitute for the deprecated CENTER element.

Example

<DIV ALIGN="center">Part IV</DIV>

Value

Case-insensitive constant value. Navigator 4 and Internet Explorer 4 (Windows) recognize all four constants specified in HTML 4: center | left | right | justify. IE 4 for the Macintosh does not recognize the justify setting.

Default

left or right, depending on direction of current language.

Object Model Reference

IE

[window.]document.all.elementID.align

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.