Specifies whether the borders for an element are collapsed or separated.
Platform Support
IE | Netscape | Mozilla | Opera | Safari | 5.0+ | 6.0+ | 1.0+ | 5.0+ | 1.2+ |
---|---|---|---|---|
|
Usage
[collapse-style-value]
Values
inherit | Inherit the value from the parent element. |
collapse | No spacing between borders. |
separate | Spacing between borders. |
Example
For a demonstration of the border-collapse attribute, see the demo page on quirksmode:
http://www.quirksmode.org/css/tables.html#bordercollapse
Availability
W3C CSS2