border-spacingNN 6 IE n/a CSS 2

Inherited: Yes

Determines the size of the space (if any) between all cell borders in a table. This attribute requires that the border-collapse attribute be set to separate (which is typically the default value). 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 11-2 for a synopsis of a table's numerous dimension definitions.

 
CSS Syntax
 
border-spacing: length[length]
 
Value

See the discussion of length values at the beginning of this chapter. If you want no spacing along one axis, set its value to zero.

 
Initial Value

0

 
Applies To

The table element.