What is the CSS border-spacing property?
The border-spacing property in
This property is only used when the
border-collapseproperty is set toseparate.
Syntax
border-spacing: length|initial|inherit;
Property values
-
length: Sets the values inpx,cm,pt, etc. to define the distance between the borders.If two values are defined, then the first value represents the horizontal space and the second value represents the vertical space.
-
initial: Sets the value to its default value. -
inherit: Inherits property from its parent value.
Code
Below is the basic border-spacing property.