<div class="bg-gray-400 p-2 inline-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>
<div class="bg-gray-400 p-2 inline-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>
.inline-grid {
display: inline-grid;
}