B.15. border-collapse

This property lets you choose which of two systems for defining table borders you want the browser to use.

The default system, which you can select with the value separate, is the familiar "separate borders" system, where each table cell has its own borders separated by the cell spacing of the table. The new system, which you can select with the collapse value, gets rid of any cell spacing, combines the borders of adjacent cells, and lets you assign borders to row and column groups. For full details, refer to the CSS2 specification.

Inherited: Yes

See also: Section B.34empty-cells

B.15.1. Value

collapse or separate

Initial value: separate[1]

[1] The initial value prescribed by the CSS2 specification is actually collapse ...

Get HTML Utopia: Designing Without Tables Using CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.