HTML Dog

Skip to navigation

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

ValueDescription
collapseCollapsing borders model. Cells share adjacent borders.
separateSeparated borders model. Cells have their own, independent borders. Default.
inherit
initial
unset

Example


table { border-collapse: collapse; }

td { border: 1px solid #ccc; }