CSS border-collapse property
Browser support · legacy reference
ChromeFully supports
SafariFully supports
FirefoxFully supports
Internet ExplorerFully supports
EdgeFully supports
OperaFully supports
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
collapse
-
It collapses the borders of table cells i.e. there is no space between the cells in a table.
- Try it
border-collapse: collapse;
Applicable to
It applies to table element.