Tailwind CSS Classes

Tailwind CSS class .border-collapse

<table class="border-collapse border-2 border-gray-500">
  <tr>
    <td class="border border-gray-400 p-2">One</td>
    <td class="border border-gray-400 p-2">One</td>
  </tr>
  <tr>
    <td class="border border-gray-400 p-2">Two</td>
    <td class="border border-gray-400 p-2">Two</td>
  </tr>
</table>

Preview

Are you tired of writing HTML by hand?

CSS source

.border-collapse {
  border-collapse: collapse;
}

More Tailwind CSS classes in Borders category

© 2024 Shuffle. All rights reserved.