border-collapse
Determines whether table cells have shared or separate borders. 'Collapse' is the most common setting used to create clean, single-line borders between cells.
It is documented as part of the CSS Table specification.
Syntax
/* Usage Example */
table {
border-collapse: collapse;
width: 100%;
}
th, td{
border: 1px solid #ddd;
padding: 12px;
/* creates a clean, modern data table layout */
}
/* Syntax */
border-collapse: separate;
border-collapse: collapse;
/* Global values */
border-collapse: inherit;
border-collapse: initial;
border-collapse: revert;
border-collapse: revert-layer;
border-collapse: unset;
border-collapse Browser support
Widely available
Since
2015 96% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.
1+
1+
1.1+
12+