Tailwind CSS Classes

Tailwind CSS class .place-self-start

    <div class="grid grid-cols-3 gap-4 place-items-stretch p-2 bg-gray-200 max-w-md">
        <div class="bg-purple-400 p-4">1</div>
        <div class="place-self-start bg-teal-400 p-4">2</div>
        <div class="bg-purple-400 p-4">3</div>
        <div class="bg-purple-400 p-4">4</div>
        <div class="bg-purple-400 p-4">5</div>
        <div class="bg-purple-400 p-4">6</div>
    </div>

Preview

Are you tired of writing HTML by hand?

More Tailwind CSS classes in Grid category

© 2024 Shuffle. All rights reserved.