Style borderSpacing Property
Style borderSpacing Property
The borderSpacing property is used to either set or return the space between cells in a table. It will not work if borders are collapsable.
Syntax:-
Its syntax is:- object.style.borderSpacing OR object.style.borderSpacing = length length|initial|inherit
Return:-
Its return is:- string having space between cells in a table
Further Explanation:-
Value | Description |
---|---|
length length | Specifies the space between cells in length units. If one value is specified, it will affect both direction spacing i.e, horizontal and vertical. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |