CSS border-spacing

The CSS border-spacing property allows you to specify the amount of space between borders of adjoining cells in tables. It can have an effect similar to HTML's cellspacing.

You can provide either one value or two. If you provide two values, the first value determines the horizontal spacing and the second determines the vertical spacing. If only one is provided, this value determines horizontal and vertical spacing.
Syntax: border-spacing: <value>
Possible Values:
  • <length> (i.e. 2px)
  • inherit
Initial Value: 0
Applies to: 'table' and 'inline-table' elements.
Inherited: Yes
Media: Visual
Example: table.space {border-spacing:10pt}
Try it yourself!