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.

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

border-spacing formal syntax
FieldValue
Formal syntax<length>{1,2}
Initial value0
Applies totableElements
InheritedYes
Percentagesno
Computed valuetwoAbsoluteLengths
Animation typebyComputedValueType
Mediavisual
Specification groupCSS Table
StatusStandard

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.

border-spacing live example
CSS .reset-example { border-spacing: initial; } .inherit-example { border-spacing: inherit; } @supports (border-spacing: initial) { .supported { border-spacing: initial; } }

Description

The CSS border-spacing property is a standard property in CSS Table. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: border-spacing
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies