Name

border-collapse

Synopsis

This property is used to define the layout model used in laying out the borders in a table—i.e., those applied to cells, rows, and so forth. Although the property applies only to tables, it is inherited by all the elements within the table.

Values:

collapse | separate | inherit

Initial value:

separate

Applies to:

elements with the display value table or inline-table

Inherited:

yes

Computed value:

as specified

Note:

in CSS2, the default value was collapse

Get Cascading Style Sheets: The Definitive Guide, Second Edition 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.