From http://www.w3schools.com (Copyright Refsnes Data)
Complete CSS Reference
The border-collapse property sets whether the table borders are collapsed into a single border or detached as in standard HTML.
Inherited: Yes
CSS properties can also be dynamically changed with a JavaScript.
Scripting Syntax: object.style.borderCollapse="collapse"
In our HTML DOM tutorial you can find more details about the borderCollapse property.
In our HTML DOM tutorial you can also find a full Style Object Reference.
| table { border-collapse: separate } |
| Value | Description |
|---|---|
| separate | Borders are detached |
| collapse | Default. Borders are collapsed into a single border when possible |
Collapse a table border
This example demonstrates how to collapse and separate a table border.
Complete CSS Reference
From http://www.w3schools.com (Copyright Refsnes Data)