By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

CSS Border-spacing Property

Reference showing how to use the css border-spacing property.

Edited: 2012-07-16 17:21

The CSS Border-spacing property is used when styling tables.

Possible Values

  • length Both the Horizontal and vertical space between table cells.
  • length length First the Horizontal and then the vertical space between table cells.

CSS Border-spacing example

table, td {
  border:1px solid blue;
  border-collapse: separate;
  border-spacing: 0;

Inherited? YES!