border-spacing
Values:
<length> <length> | inherit
Initial value:
0
Applies to:
Elements with the display value table or table-inline.
Inherited:
Yes.
Description:
Property is ignored unless border-collapse value is separate. border-spacing specifies the distance between cell borders in the separated borders model.
The first value is the horizontal separation and the second is the vertical.
Examples:
table {border-collapse: separate; border-spacing: 0;}
table {border-collapse: separate; border-spacing: 3px 5px;}
Home
HTML CSS Book
CSS Reference
HTML CSS Book
CSS Reference
Table:
- border-collapse
- border-spacing
- caption-side
- empty-cells
- table-layout
Related: