spacing between cells


<table cellspacing="">

Browser
Internet Explorer Firefox Opera
Type
Block-level

The cellspacing attribute of the TABLE element specifies the space between cells.


<table cellspacing="3">


Attribute Value Explanation
cellspacing=" " pixels or % the size of the space
Tips and Notes

This can be specified with CSS. Please see the "Related Document" for details on CSS.


Example

The cellspacing is 0

<table border="1" cellspacing="0">
<tr>
<td>Cell A</td>
<td>Cell B</td>
<td>Cell C</td>
</tr>
</table>
Output
Cell A Cell B Cell C

The cellspacing is 5

<table border="1" cellspacing="5">
<tr>
<td>Cell A</td>
<td>Cell B</td>
<td>Cell C</td>
</tr>
</table>
Output
Cell A Cell B Cell C

The cellspacing is 15

<table border="1" cellspacing="15">
<tr>
<td>Cell A</td>
<td>Cell B</td>
<td>Cell C</td>
</tr>
</table>
Output
Cell A Cell B Cell C