Windframe
Build Tailwind UIs that actually look good!
.jpg)
The flex-1 class makes an element take up an equal share of the available space in a flex container.
The flex-1 class makes an element take up an equal share of the available space in a flex container.
<div class="flex p-10 bg-gray-100 space-x-5"> <div class="flex-1 bg-red-400 p-4 text-center text-white font-bold rounded">Flex Item 1</div> <div class="flex-1 bg-blue-400 p-4 text-center text-white font-bold rounded">Flex Item 2</div></div>Add the flex-1 class directly to your HTML element:
<div class="flex-1"> <!-- Your content here --></div>Use Tailwind's responsive prefixes to apply flex-1 at specific breakpoints:
<div class="sm:flex-1 md:flex-1 lg:flex-1"> Responsive element</div>sm:flex-1 — applies from 640px and upmd:flex-1 — applies from 768px and uplg:flex-1 — applies from 1024px and upYou can extend or override this utility in your tailwind.config.js. See the Tailwind CSS documentation for details on customizing your theme.
Windframe is an AI visual editor for rapidly building stunning web UIs & websites
