HTML TABLES INDEX

Table Cellspacing

Space can be added between the table cells using the <CELLSPACING=> tag within the <TABLE> tag.

1 2
3 4

This table has no cellspacing.
<TABLE BORDER=1 >

<TR>
    <TD>1</TD>	<TD>2</TD>
</TR>
<TR>
    <TD>3</TD>  <TD>4</TD>
</TR>

</TABLE>

And the same table with cellspacing set at 25

1 2
3 4

By typing it like this:
<TABLE BORDER=1
CELLSPACING=25>

<TR>
    <TD>1</TD>	<TD>2</TD>
</TR>
<TR>
    <TD>3</TD>  <TD>4</TD>
</TR>

</TABLE>


  1. The value specified for cellspacing is in pixels.
  2. Cellspacing is used to increase the space between cells.
  3. The cellspacing attribute does not increase the overall size of the cell, but increases the distance between cells.

Cellpadding Align & Valign