HTML and CSS Reference
In-Depth Information
10.
Bring the left-hand cell's content to the top of the cell:
Add the attribute
valign=”top”
to the first
<td>
tag.
(To cover all bases, add the attribute to the second
<td>
tag as
well)
<table border=”0” width=”100%” cellpadding=”16”
cellspacing=”0”>
<tr>
<td bgcolor=”#cccccc”
valign=”top”
>
<p>Richmond</p>
<p>Williamsburg</p>
<p>Charleston</p>
</td>
<td
valign=”top”
>
<h1>Traveling South</h1>
<IMG SRC="graphics/uva.gif">
<p>If you've got a couple of weeks for
vacation, you might want to visit the South.
Richmond, Williamsburg, and Charleston are all
beautiful cities.</p>
</td>
</tr>
</table>