valign

Vertical Alignment (XHTML table model)

Definition

See documentation for the HTML 4.0 (XHTML) table model.

Specifies the vertical position of data within a table cell, for example, flush to the top of the cell

Attribute Values

In Elements

<col> Table Column (XHTML table model); <colgroup> Table Column Group (XHTML table model); <tbody> Table Body (XHTML table model); <td> Table Data Cell (XHTML table model); <tfoot> Table Footer (XHTML table model); <th> Table Header Cell (XHTML table model); <thead> Table Header (XHTML table model); <tr> Table Row (XHTML table model)
Value Meaning
baseline All cells in the same row as a cell whose valign attribute has this value should have their textual data positioned so that the first text line occurs on a baseline common to all cells in the row. This constraint does not apply to subsequent text lines in these cells.
bottom Cell data are flush with the bottom of the cell.
middle Cell data are centered vertically within the cell.
top Cell data are flush with the top of the cell.
Restriction: This attribute may be specified if the element is used.