Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

border-spacing property

Specifies the distance between the borders of adjoining cells in a table.

CSS 2.1, Section 17.6.1

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 Totable and inline-table elements
Mediavisual
Inheritedtrue
Initial Value0

Standards information

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.

See also

CSSStyleDeclaration
currentStyle
runtimeStyle
style
border-collapse

 

 

Show:
© 2014 Microsoft