What is the function of the border-collapse property in CSS for styling tables?

  • To collapse adjacent cell borders into a single border. 
  • To create a drop-shadow for the table. 
  • To define the spacing between cells. 
  • To set the width of table borders. 
The border-collapse property in CSS is used to determine how borders of table cells are displayed. There are mainly two values: separate (default) and collapse. When set to collapse, adjacent borders of table cells are merged into a single border, resulting in a more streamlined and cleaner appearance. On the other hand, when set to separate, borders will be displayed for each cell individually, and the border-spacing property can be used to determine the space between them. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *