Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

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

Syntax

HTMLTableElement.cellSpacing =
spacing;
var
spacing =
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

 Contributors to this page: teoli, kscarfone, Abin_Abraham, Sheppy, ethertank, RobG, Andreas Wuest, Dria, JesseW
 Last updated by: teoli,