border-spacing property
Specifies the distance between the borders of adjoining cells in a table.
![]() ![]() |
Syntax
border-spacing:
<length>
| inherit
Property values
One or two of the following values.
- length
-
Floating-point number, followed by a supported length unit.
inherit-
The property takes the same specified value as the property for the element's parent.
CSS information
| Applies To | table and inline-table elements |
|---|---|
| Media | visual |
| Inherited | true |
| Initial Value | 0 |
Standards information
- CSS 2.1, Section 17.6.1
Remarks
The length values specify the distance that separates adjoining cell borders. If one length is specified, it represents both the horizontal and vertical spacing. If two are specified, the first represents the horizontal spacing, the second the vertical spacing. Negative lengths are ignored.
The distance between the table border and the borders of the cells on the edge of the table is the padding of the table for that side, plus the relevant border-spacing distance. For example, on the right side the distance is padding-right plus the horizontal border-spacing.
This property requires Windows Internet Explorer to be in IE8 Standards mode rendering.
See also

