HTML TABLES INDEX

Table Cellpadding

Space can be added between the data and the cell wall using the <CELLPADDING> attribute in the <TABLE> tag.
1 2
3 4

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

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

</TABLE>

The same table with <CELLPADDING=25> in the <TABLE> tag.

1 2
3 4

By typing it like this:
<TABLE BORDER=1 CELLPADDING=25>
<TR>
    <TD>1</TD>	<TD>2</TD>
</TR>
<TR>
    <TD>3</TD>  <TD>4</TD>
</TR>

</TABLE>

  1. The value specified for cellpadding is in pixels.
  2. Cellpadding is used to separate cell data from the edges of the cell.
  3. Data is easier to read when cellpadding is used.
  4. Larger cells can help make data easier to read.

Width & Height Cellspacing