Name
cell-spacing — NN n/a IE n/a CSS 2
Synopsis
Inherited: Yes
Determines the size of the space (if any) between cell borders in a
table. This attribute requires that the display attribute be set to
table. If you include only one length value, it
applies to both the horizontal and vertical cell spacing; for two
values, the first applies to the horizontal and the second to the
vertical. See Figure 10.2 for a synopsis of a
table’s numerous dimension definitions.

Figure 10-2. The geometry of a TABLE element
CSS Syntax
cell-spacing:length[length] | none
Value
See the discussion of length values at the beginning of this chapter.
The none value applies to both vertical and
horizontal cell spacing. If you want no spacing along one axis, set
its value to zero.
Initial Value
None.
Applies To
All elements.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access