Name
cellSpacing — NN n/a IE 4 DOM 1
Synopsis
Read/Write
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.
Example
document.all.myTable.cellSpacing = "5"
Value
A string value for a length in a variety of units or percentage.
Default
0
(with no table border); 2
(with table border).
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.