CSS border-collapse property

Usage

Determines how table borders will be displayed. By using the collapse value they will appear as a single line between table cells, and by using separate each cell will retain its own individual borders.

Values

  • collapse - default; cell borders will collapse into one single border
  • separate - cells will retain their own individual borders

Example

Code:

table {
  border-collapse: separate;
}