HTML and CSS Reference
In-Depth Information
11. Control the widths of the table cells:
Add the attribute width=”20%” to the first <td> tag, and the
attribute width=”80%” to the second.
<table border=”0” width=”100%” cellpadding=”16”
cellspacing=”0”>
<tr>
<td bgcolor=”#cccccc” valign=”top” width=”20%” >
<p>Richmond</p>
<p>Williamsburg</p>
<p>Charleston</p>
</td>
<td valign=”top” width=”80%” >
<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>
 
Search WWH ::




Custom Search