The border-spacing property allows you to specify the amount of space between the borders of adjacent table cells.
The amount of space between the borders of adjacent cells is also known as border space.
The following table shows the possible values of the border-spacing property :
|length||Specifies the horizontal and vertical spacing between borders. If two length values are provided to the property, the first value sets the horizontal spacing and the second value sets the vertical spacing.|
|inherit||Specifies that the value of the border-spacing property should be inherited from the parent element.|
The syntax of the border-spacing property is as follows :
border-spacing: 10px 50px;
In the preceding syntax, the border-spacing property takes two values, 10 pixels and 50 pixels. The first value specifies the horizontal spacing and the second value specifies the vertical spacing.