CSS border-spacing Property Reference
The CSS border-spacing property is a standard property in CSS Table. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
border-spacing overview
The CSS border-spacing property is a standard property in CSS Table. Review its formal syntax, computed behavior, and practical declarations.
The computed value normally inherits from the parent element when no declaration wins the cascade.
Syntax and formal definition
| Field | Value |
|---|---|
| Formal syntax | <length>{1,2} |
| Initial value | 0 |
| Applies to | tableElements |
| Inherited | Yes |
| Percentages | no |
| Computed value | twoAbsoluteLengths |
| Animation type | byComputedValueType |
| Media | visual |
| Specification group | CSS Table |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set border-spacing. The initial and inherit global keywords remain available even when a property-specific value is preferable.
CSS
.reset-example {
border-spacing: initial;
}
.inherit-example {
border-spacing: inherit;
}
@supports (border-spacing: initial) {
.supported {
border-spacing: initial;
}
}