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  

Table:
  1. border-collapse
  2. border-spacing
  3. caption-side
  4. empty-cells
  5. table-layout
Related: