javascript TABLE cellSpacing

cellSpacingNN 6 IE 4 DOM 1  

Read/Write  

Specifies the amount of empty space between the outer edges of each table cell. If the table has a border, the effect of setting cellSpacing is to define the thickness of borders rendered between cells. Even without a visible border, the readability of a table often benefits from cell spacing, or a combination of cell spacing and cell padding.

 
Example
 
document.getElementById("myTable").cellSpacing = "5";
 
Value

A string value for a length in pixels or percentage.

 
Default

0 (with no table border); 2 (with table border).


1990,Nickname,Homepage or email,Comments here,Add comment