Collapse the table border:
The borderCollapse property sets or returns whether the table border should be collapsed into a single border or not.
The borderCollapse property is supported in all major browsers.
Return the borderCollapse property:
Set 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 |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Default Value: | separate |
---|---|
Return Value: | A String, representing the borders of a table |
CSS Version | CSS2 |
Return the borderCollapse property:
CSS tutorial: CSS Table
CSS reference: border-collapse property