← Tailwind CSS classes list

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

One
Two
Three
Four

CSS source

.grid {
    display: grid;
}

More in Tailwind CSS Display