Easy Tutorial
❮ Prop Link Media Prop Script Src ❯

Style borderCollapse Property

Style Object

Example

Collapse the borders of a table:


Definition and Usage

The borderCollapse property sets or returns whether the table borders should be collapsed into a single border.


Browser Support

All major browsers support the borderCollapse property.


Syntax

Return the borderCollapse property:

Set the borderCollapse property:

Property Values

Value Description
separate Draws separate borders for all table cell elements; borders are not merged into a single border. This is the default.
collapse Borders are not drawn between table cell elements; borders are merged into a single border.
initial Sets this property to its default value. See initial
inherit Inherits this property from its parent element. See inherit

Technical Details

Default value: separate
Return value: A string representing the table's borders.
CSS version CSS2

More Examples

Example

Return the borderCollapse property:


Related Articles

CSS Tutorial: CSS Table

CSS Reference: border-collapse Property


Style Object

❮ Prop Link Media Prop Script Src ❯