HTML and CSS Reference
In-Depth Information
6.
You'll notice that the word links is right up against the edge of the
left-hand cell.
To add a 16-pixel margin between the edge of the cells and their
contents, add the attribute cellpadding=”16” to the <table>
tag:
<body>
<table border=”0” width=”100%”
cellpadding=”16” >
<tr>
<td bgcolor=”#cccccc”>links</td>
<td>content</td>
</tr>
</table>
7.
To eliminate the spacing between cells, add the attribute
cellspacing=”0” to the <table> tag:
<body>
<table border=”0” width=”100%” cellpadding=”16”
cellspacing=”0” >
<tr>
<td bgcolor=”#cccccc”>links</td>
<td>content</td>
</tr>
</table>
 
Search WWH ::




Custom Search