This attribute aligns a given tag's contents as indicated. There are several forms of the align attribute, which apply to the following categories:
Block Elements
For block elements, default alignment behavior does not correspond precisely with the behavior specified by any of the documented values for the align property. Default alignment behavior may or may not justify, depending upon a number of factors – the active margin widths, the availability of a hyphenation engine for the current content, and whether or not the text is a heading tag. The non-OEB, common-HTML-use, just
value is supported in addition to justify
.
Image Elements
For image elements, vertical-alignment options are not supported. Bottom, middle and top have no effect.
For images, the values left
and right
cause the image to float such that text can wrap around it.
Table Elements
For tables, the values left
and right
cause the table to float so that text can wrap around it. Default behavior is for a table to be rendered at the left margin, but without floating, and thus without text wrapping around it.
Syntax
align="right|left|center|justify|just"
Associated Tags
div, h#, p, td, th
Syntax
align="right|left|bottom|middle|top"
Associated Tags
img
Syntax
align="right|left|center"
Associated Tags
hr, table
© 2000 Microsoft Corporation. All rights reserved. Terms of use.