HTML and CSS Reference
In-Depth Information
<th>Baseline</th>
<th>Center</th>
<th>Middle></th>
<th>Bottom</th>
</tr>
<tr align="center">
<th><h1>Baseline_ _<br />Another line</h1></th>
<td valign="top">AAyy</td>
<td valign="baseline">_AAyy_</td>
<td valign="center">AAyy</td>
<td valign="middle">AAyy</td>
<td valign="bottom">AAyy</td>
</tr>
</table>
You also can specify the horizontal and vertical alignments for individual
cells within a row (see Section 10.2.3.1 ). Use the alignment attributes
in the <tr> tag to specify the most common cell-content justifications for
the row (if not the default), and use a different align or valign attribute
for those individual cells that deviate from the common alignment.
Table 10-1 contains the horizontal ( align ) and vertical ( valign ) table
cell-content attribute values and options. Values in parentheses are the
defaults for the popular browsers.
Table 10-1. Table cell-content alignment attribute values
and options
Attribute
Headers (<th>)
Data (<td>)
align
Left
(Left)
 
Search WWH ::




Custom Search