Home Menu

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.

Initial

0

Default

2px

Examples

length

JS

World Wide Web Consortium (W3C)

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms