Open In App

How to implement the border-collapse Property in CSS ?

The border-collapse property in CSS is used to control the border model for table elements. It determines whether adjacent table cell borders and spacing should be collapsed into a single border or if they should be kept separate.

Note: The border-collapse property can take values like collapse and separate.

Syntax:

/* Collapsing table borders and spacing */
table {
border-collapse: collapse;
}

Features:

Article Tags :