CSS · Properties — CSS Table

border-spacing

The CSS border-spacing property. Initial value: 0. Inherited.

Syntax
border-spacing: <length>{1,2}

Example

Try it

Notes

Media: visual. Applies to: tableElements. Computed value: twoAbsoluteLengths.

More in this group

border-collapse caption-side empty-cells table-layout

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course