CSS Border-Spacing Property

CSS 1

CSS 2

CSS 3

No No Yes

Description

Property for specifying space between borders of adjoining cells in tables.

Syntax

border-spacing: [value1] [value2]

Possible values

  • [length]
  • inherit

Initial Value

0

Applies To

'table' and 'inline-table' elements*

Inherited

Yes

Media

Visual

Example

.class {
  border-spacing: 3px ;
}


View All CSS Properties