CSS border spacing Property
CSS border-spacing Property
The border-spacing property is used to specify the distance between the borders of adjacent cells. It works only on the table element and only when the border-collapse property is set to separate.
Default Value:-
Its default value is 2px.
Syntax:-
Its syntax is:- border-spacing: length | initial | inherit;
Further Explanation:-
Value | Description |
---|---|
length length | Specifies the distance between the borders of adjacent cells in px, cm, etc. If only one value is present, it will specify both horizontal and vertical. |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |