Specifies the distance between the borders of adjoining cells in a table.
One or two of the following values.
Floating-point number, followed by a supported length unit.
The property takes the same specified value as the property for the element's parent.
|Applies To||table and inline-table elements|
- CSS 2.1, Section 17.6.1
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.