Name
VALIGN — NN n/a IE 3 HTML 4
Synopsis
VALIGN=”alignmentConstant"Optional
Determines the vertical alignment of content within cells of the
column(s) covered by the COLGROUP element. You can
override the vertical alignment for a particular cell anywhere in the
column.
Example
<COLGROUP VALIGN="middle">
Value
Four constant values are recognized by both IE 4 and HTML 4:
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 COLGROUP 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