border-spacing
Summary
Specifies the distance between the borders of adjacent cells.
Overview table
- Initial value
0
- Applies to
- Table and inline-table elements
- Inherited
- Yes
- Media
- visual
- Computed value
- Two absolute lengths
- Animatable
- No
- CSS Object Model Property
borderSpacing
Syntax
border-spacing: inherit
border-spacing: length
Values
- length
- The distance that separates adjoining cell borders. If one length is specified, it gives both the horizontal and vertical spacing. If two are specified, the first gives the horizontal spacing and the second the vertical spacing. Lengths may not be negative.
- inherit
- The same specified value as the property for the element’s parent will be used.
Examples
Notes
- The CSS2.1 specification states that user agents may apply this property to frameset elements (therefore replacing the framespacing attribute).
Related specifications
- CSS 2.1, 17.6.1. The separated borders model
- Recommendation
- CSS 3, 8.1. The separated borders model
- Editor’s Draft
See also
Related articles
Tables
border-spacing
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]