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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access