Name
ALIGN — NN n/a IE 4 HTML 4
Synopsis
ALIGN=”alignConstant"Optional
Establishes the horizontal alignment characteristics of content
within the row. 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
<TR ALIGN="center">
Value
Navigator and Internet Explorer share the same set of attribute values, whereas HTML 4.0 specifies two additional values:
|
Value |
NN 4 |
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 within the TR
element, 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 ...
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