CSS border-spacing Property

border-spacing The property specifies the distance between the borders of adjacent cells in the Table. This property is only applicable when the border-collapse property is set to no-collapse separate.




Property Values

Value Description
length length Specifies the distance between adjacent cell borders in pixels, centimeters, and so on. Negative values are not permitted. If only one value is entered, it determines both the horizontal and vertical spacing between cells. If two values are given, the first determines horizontal spacing and the second determines vertical spacing.
initial This property is set to its default value.
inherit This property is inherited from its parent element.

Supported Browsers

Element Chrome Firefox Safari Edge / IE Opera
border-spacing 1.0 1.0 1.0 8.0 4.0