Learn Scripting Languages from the Master!
To add space among a table cells, use the cellspacing property. The following examples show some effects of different cellspacing values:
| Examples showing different cell spacing values | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
|
||||||||||||||||
To create a table to separate cells by ten pixels, use the following code:
<table width="40" border="1" cellspacing="10"><tr><td>10</td><td>10</td></tr><tr><td>10</td><td>10</td></tr></table>