Extensible HyperText Markup Language

border-collapse

Definition

The border-collapse property specifies if table cells should have their own border, or share a common border. The screen shot below shows a table where each cell has its own border.

Screen shot of a Web browser rendering a table where each cell has its own border.

The screen shot below show a table where cells share a common border.

Screen shot of a Web browser rendering a table where cells share a common border.

Example

  1. table {border-collapse: collapse}

Characteristics

Possible values

collapse
Share a common border between table cells.
separate
Give each table cell its own border.
inherit
Use the same computed value as the parent element for this property.

Default value

separate

Applies to

Inherited

Yes

See also

XStandard XHTML WYSIWYG editor
A standards-compliant WYSIWYG editor component for content management applications. The editor generates valid XHTML and uses CSS for formatting. Free version is available.

Check out XStandard