HomeReferencesCSS Properties

CSS Property: border-collapse

Specifies which border model should be used in a table.

HTML Dog, The Book HTML Dog book cover

HTML Dog is hosted by Titan Internet

Possible Values

  • inherit
  • collapse - "collapsing borders" model - cells share adjacent borders.
  • separate (default) - "separated borders" model - cells have their own borders.

Example


table { border-collapse: collapse; }

td { border: 1px solid #ccc; }