O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

border-collapse

Values:

collapse | separate

Initial value:

separate

Applies to:

Elements with a display value of table or inline-table

Inherited:

Yes

Computed value:

Same as declared value

Description:

Defines 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 and actually used by them.

Examples:

table {border-collapse: separate; border-spacing: 3px 5px;}

Note:

In CSS2.0, the default value was collapse.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required