Tailwind CSS Classes

Tailwind CSS class .flex-nowrap

    <div class="h-40 w-64 px-2 py-6 bg-gray-200 flex flex-nowrap">
        <div class="px-10 py-2 bg-teal-400 rounded">1</div>
        <div class="px-10 py-2 bg-purple-400 rounded">2</div>
        <div class="px-10 py-2 bg-indigo-400 rounded">3</div>
        <div class="px-10 py-2 bg-teal-400 rounded">4</div>
    </div>

Preview

Check .flex-nowrap 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 Flexbox category

© 2024 Shuffle. All rights reserved.