Web4College

CSS border-collapse property

src

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.

Syntax

border-collapse : separate | collapse

Property values

separateDefault

There is space between the borders of table cells.

border-collapse: separate;
Try it

collapse

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

border-collapse: collapse;
Try it

Applicable to

It applies to table element.