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 COL element. You can
override the vertical alignment for a particular cell anywhere in the
column.
Example
<COL VALIGN="middle">
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 attributes of all cells in the same row (or
all COL elements) 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
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