Windframe
Build Tailwind UIs that actually look good!
.jpg)
The my-2 class adds a margin of 0.5rem (8px) to the top and bottom sides of an element.
The flex-grow class allows an element to expand and occupy any remaining space within its container.
<div class="flex p-10 bg-yellow-50 space-x-5"> <div class="flex-grow bg-yellow-400 p-4 text-center text-gray-600 font-bold rounded">flex-grow</div> <div class="bg-yellow-100 p-4 text-center text-gray-600 font-bold rounded">Fixed Item</div> <div class="bg-yellow-100 p-4 text-center text-gray-600 font-bold rounded">Fixed Item</div></div>Add the flex-grow class directly to your HTML element:
<div class="flex-grow"> <!-- Your content here --></div>Use Tailwind's responsive prefixes to apply flex-grow at specific breakpoints:
<div class="sm:flex-grow md:flex-grow lg:flex-grow"> Responsive element</div>sm:flex-grow — applies from 640px and upmd:flex-grow — applies from 768px and uplg:flex-grow — 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
