MDN’s new design is in Beta! A sneak peek: https://blog.mozilla.org/opendesign/mdns-new-design-beta/

table.cellSpacing

« table

The HTMLTableElement.cellSpacing represents the spacing around the individual cells of the table.

Syntax

HTMLTableElement.cellSpacing =spacing;
varspacing =HTMLTableElement.cellSpacing;
  • spacing is either a number of pixels (e.g. "10") or a percentage value (e.g. "10%").

Example

// Set the cell spacing to 10 pixels
var t = document.getElementById('TableA');
t.cellSpacing = "10";

Specification

Document Tags and Contributors

 Last updated by: teoli,