# Property Description

The border-spacing property sets the distance between the borders of adjacent cells (only for the separate borders model).

# Property Values

Value | Description
--- | ---

length length

Specifies the distance between the borders of adjacent cells in px, cm, etc.

- If one value is specified, it specifies both the horizontal and vertical spacing
- If two values are specified, the first value sets the horizontal spacing and the second value sets the vertical spacing

inherit1 | Specifies that the value of the property should be inherited from the parent element

# Examples

This example sets the border-spacing for a table.

    table {
      border-collapse:separate;
      border-spacing:10px 40px;
    }

# Browser Support

Firefox | IE | Chrome | Opera | Safari

1 - 'inherit' not supported by IE

# Miscellaneous Information

Inherited: | Yes
Defined In: | CSS2