Skip to content
Related Articles
Open in App
Not now

Related Articles

Tailwind CSS Border Collapse

Improve Article
Save Article
  • Last Updated : 23 Mar, 2022
Improve Article
Save Article

This class accepts lots of value in tailwind CSS in which all the properties are covered in class form. This class is used to set the borders of the cell present inside the table and tells whether these cells will share a common border or not. In CSS, we can do that by using CSS border-collapse property.


<element class="border-collapse">...</element>



<!DOCTYPE html> 
    <link href
<body class="text-center mx-4 space-y-2"
    <h1 class="text-green-600 text-5xl font-bold"
    <b>Tailwind CSS Border Collapse Class</b
    <div class="grid grid-flow-col text-center p-2"
        <table class="border-Collapse border border-green-900">
            <th class="border border-green-600">Frameworks</th>
            <th class="border border-green-600">Release Year</th>
            <td class="border border-green-600">Tailwind CSS</td>
            <td class="border border-green-600">2019</td>
            <td class="border border-green-600">Bulma</td>
            <td class="border border-green-600">2016</td>
            <td class="border border-green-600">Bootstrap</td>
            <td class="border border-green-600">2011</td>


My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!