Name
ALIGN — NN all IE all HTML 3.2
Synopsis
ALIGN=”where"
Optional
Determines how the caption is rendered in physical relation to the
table. Not all versions of all browsers support the full range of
possibilities for this attribute. Only top
and
bottom
are universal among all supporting
browsers.
Browsers typically render a caption above or below a table in the running body font (unless modified by tag or style sheet) and centered horizontally on the table. If the caption is wider than the table, text is wrapped to the next line, maintaining center justification.
The ALIGN
attribute is deprecated in HTML 4.0 in
favor of the text-align:
and
vertical-align:
style sheet attribute.
Example
<CAPTION ALIGN="top">Table II. Stock List</CAPTION>
Value
Each browser and the HTML 4.0 specification define different sets of values for this attribute. Select the one(s) from the following table that work for your deployment:
Value |
NN 4 |
IE 4 |
HTML 4.0 |
---|---|---|---|
bottom |
• |
• |
• |
center |
- |
• |
- |
left |
- |
• |
• |
right |
- |
• |
• |
top |
• |
• |
• |
Moreover, IE 4 and HTML 4.0 disagree on the intention of the
left
and right
values. In IE 4,
the captions are always at the top or bottom of the table (see the
VALIGN
attribute), but the text is right-,
center-, or left-aligned in those positions. HTML 4.0 speaks of
left
and right
as meaning positioning the entire caption to the left or right of the table. If Internet Explorer were to adopt the HTML 4.0 specification in ...
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.