HTML and CSS Reference
In-Depth Information
<tr>
<th> Bottom </th>
<td align=”left” valign=”bottom”><img src=”star.png” alt=”” /></td>
<td align=”center” valign=”bottom”><img src=”star.png” alt=”” /></td>
<td align=”right” valign=”bottom”><img src=”star.png” alt=”” /></td>
</tr>
</table>
</body>
</html>
.
Output
FIGURE 10.20
A matrix of cell
alignment settings.
Caption Alignment
The optional align attribute of the <caption> tag determines the alignment of the cap-
tion. Depending on which browser you're using, however, you have different choices for
what align means.
There are four values for the align attribute of the <caption> tag, top , bottom , left , and
right . By default, the caption is placed at the top of the table ( align=“top” ). You can use
the align=“bottom” attribute to the caption if you want to put the caption at the bottom of
the table, like the following:
<table>
<caption align=“bottom”> Torque Limits for Various Fruits </caption>
Similarly, left places the caption to the left of the table, and right places it to the right.
In Internet Explorer, however, captions are handled slightly differently. The top and
bottom values are treated in the standard fashion, but left and right are different. Rather
than placing the caption to the side of the table specified, they align the caption horizon-
tally on the top or bottom of the table, and the placement of the caption is then left to the
 
Search WWH ::




Custom Search