Javascript Reference
Categories: TABLE

javascript TABLE cellPadding

@July 30, 2008, 1:33 p.m.
cellPadding Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  
  Read/Write  

Specifies the amount of empty space between the (visible or invisible) border of a table cell and the content of the cell. Note that this property applies to space inside a cell. Minor adjustments to this property are not as noticeable when the table does not also display borders (in which case the cellSpacing property can assist in adjusting the space between cells).

 
Example
 
document.getElementById("myTable").cellPadding = "15";
 
Value

A string value for a length in pixels or percentage.

 
Default

0


Powered by Linode.