border-spacing

Determines the distance between the borders of adjacent table cells. Note that this property only works if 'border-collapse' is set to 'separate'.

Quick example

table {
  border-collapse: separate;
  /* horizontal spacing | vertical spacing */
  border-spacing: 10px 5px;
}

Quick facts

Initial value
0
Inherited
Yes
Applies to
table elements
Animation type
discrete

border-spacing Browser Support

Widely available Since 2015 96% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.

Safe to use without fallbacks.

1+
1+
1+
12+
ESC