Name
VALIGN — NN n/a IE 4 HTML 4
Synopsis
VALIGN=”alignmentConstant"
Optional
Determines the vertical alignment of content within cells of the
column(s) covered by the TFOOT
element. You can
override the vertical alignment for a particular cell anywhere in the
column.
Example
<TFOOT VALIGN="bottom">
Value
Four constant values are recognized by both IE 4 and HTML 4.0:
top
| middle
|
bottom
| baseline
. With
top
and bottom
, the content is
rendered flush (or very close to it) to the top and bottom of the
table cell. Set to middle
(the default), the
content floats perfectly centered vertically in the cell. When one
cell’s contents might wrap to multiple lines at common window
widths (assuming a variable table width), it is advisable to set the
VALIGN
attribute to baseline
.
This assures that the character baseline of the first (or only) line
of a cell’s text aligns with the other cells in the
row—usually the most aesthetically pleasing arrangement.
Default
middle
Object Model Reference
- IE
[window.]document.all.elementID.vAlign
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.