Tailwind CSS Classes

Tailwind CSS class .flex

<div class="bg-gray-400 p-2 flex">
  <div class="flex-1 bg-teal-400">One</div>
  <div class="flex-1 bg-teal-400">Two</div>
</div>

Preview

CSS source

.flex {
    display: flex;
}

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

© 2024 Shuffle. All rights reserved.