CSS border-collapse property

Property values

CSS border-collapse property defines whether to separate or collapse the borders of table cells. It is important to note that it applies to table element and not to the td or tr elements.


border-collapse : separate | collapse

Property values


There is space between the borders of table cells.

border-collapse: separate;


It collapses the borders of table cells i.e. there is no space between the cells in a table.

border-collapse: collapse;

Applicable to

It applies to table element.

#CSS digger
Was this article helpful?

Name Aggregate Degree
Sheraz 70% BSC
Bilal 80% BIT
Aleem 90% BSE