Tailwind CSS Classes

Tailwind CSS class .grid

<div class="bg-gray-400 p-2 grid gap-2 grid-cols-2">
  <div class="bg-teal-400">One</div>
  <div class="bg-teal-400">Two</div>
  <div class="bg-teal-400">Three</div>
  <div class="bg-teal-400">Four</div>
</div>

Preview

CSS source

.grid {
    display: grid;
}

Check .grid in a real project

Click one of the examples listed below to open the Shuffle Visual Editor with the UI library that uses the selected component.

More Tailwind CSS classes in Display category

© 2024 Shuffle. All rights reserved.