Style Object
The borderCollapse property sets or returns whether the table border should be collapsed into a single border or not.
Set the borderCollapse property:
Return the borderCollapse property:
| Value | Description |
|---|---|
| separate | Separate borders are drawn for all table cell elements. This is default |
| collapse | Borders are not drawn between table cell elements |
| inherit | The value of the borderCollapse property is inherited from parent element |
![]()
The borderCollapse property is supported in all major browsers.
Note: The value "inherit" is not supported in IE7 and earlier. IE8 requires a !DOCTYPE. IE9 supports "inherit".
Collapse the table border:
Style Object
Your message has been sent to W3Schools.