Specifies whether the borders of a table are joined in a single border or not.
This property only works for table elements. If you want to use collapsed borders, the cellSpacing attribute must be set to '0px'.
One of the following values:
|Borders are not drawn between table cell elements.|
|Takes the value of this property from the computed style of the parent element.|
|Default. Separate borders are drawn for all table cell element.|
Example HTML code 1:
This example illustrates the use of the border-collapse property:
Did you find this example helpful?
Supported by tags:
User Contributed Comments