Name
ALIGN — NN n/a IE 4 HTML 4
Synopsis
ALIGN=”alignConstant"
Optional
Establishes the horizontal alignment characteristics of content
within the row(s) covered by the TFOOT
element.
The HTML 4.0 specification defines settings for the
ALIGN
attribute that are not yet reflected in the
CSS specification. Therefore, this ALIGN
attribute
is not fully deprecated as it is for many other elements. As a rule,
alignment should be specified by style sheet wherever possible.
Example
<TFOOT ALIGN="center">
Value
HTML 4.0 and IE 4 have two sets of attribute values:
Value |
IE 4 |
HTML 4.0 |
---|---|---|
center |
• |
• |
char |
- |
• |
justify |
- |
• |
left |
• |
• |
right |
• |
• |
The values center
, left
, and
right
are self-explanatory. The value
justify
is intended to space content so that text
is justified down both left and right edges. For the value
char
, the CHAR
attribute must
also be set to specify the character on which alignment revolves. In
the HTML 4.0 specification example, content that does not contain the
character appears to be right-aligned to the location of the
character in other rows of the same column.
It is important to bear in mind that the ALIGN
attribute applies to every cell of every row within the
TFOOT
, including any TH
element
you specify for the table. If you want a different alignment for the
row header, override the setting with a separate
ALIGN
attribute or text-align
style sheet attribute for the individual TH
elements.
Default
left
Object Model Reference ...
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.