Tailwind CSS Classes

Tailwind CSS class .justify-items-auto

    <div class="grid grid-cols-3 gap-4 justify-items-auto p-2 bg-gray-200 max-w-md">
        <div class="bg-teal-400 p-4">1</div>
        <div class="bg-teal-400 p-4">2</div>
        <div class="bg-teal-400 p-4">3</div>
        <div class="bg-teal-400 p-4">4</div>
        <div class="bg-teal-400 p-4">5</div>
        <div class="bg-teal-400 p-4">6</div>
    </div>

Preview

Are you tired of writing HTML by hand?

More Tailwind CSS classes in Flexbox category

© 2024 Shuffle. All rights reserved.