CSS Property: border-collapse
Whether table cell borders should collapse together or remain separate.
Applies to boxes set to display: table (of which table HTML elements are by default) or display: inline-table.
Possible Values
| Value | Description |
|---|---|
collapse | Collapsing borders model. Cells share adjacent borders. |
separate | Separated borders model. Cells have their own, independent borders. Default. |
inherit | |
initial | |
unset | |
Example
table { border-collapse: collapse; }
td { border: 1px solid #ccc; }
