CSS - Properties - border-collapse


  table {
      border-collapse: separate; /* This is the default */
  }
  

Planet Radius
Earth 3,959 mi


  table {
      border-collapse: collapse;
  }
  

Planet Radius
Earth 3,959 mi

CSS syntax:
border-collapse: separate | collapse | inherit; ref.

Remind me, what is a CSS property?

  /* This is a CSS rule */
  byElementName, .byClass, #byId /* These are CSS selectors. */
  {
     /* This is a CSS declaration block */
     property: value; /* This is a CSS declaration */
     property: value; /* A CSS declaration assigns a value to a property */
  }
  


Ads by Google


Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath