border-spacing

The border-spacing CSS property specifies the distance between the borders of adjacent cells.

Syntax

CSS

border-spacing: value;

JS

object.style.borderSpacing = "value";

Values

<'border-spacing'> = <​length​>{1,2}
<length>

Specifies the length using a number followed by a unit of measurement.

Default

2px

Initial

0

Examples

length

JS

Internal

border-collapse

caption-side

empty-cells

table-layout

External

World Wide Web Consortium (W3C)

Home Menu