Check out our free templates made with AI and polished to perfection in Windframe

Get now

min-w-max: Tailwind CSS Width class

The min-w-max class sets the minimum width of an element to its largest content size.


Min-w-max

The min-w-max class sets the minimum width of an element to its largest content size.

Example Code

html
<div class="flex justify-center items-center gap-2 p-3 rounded-t-md bg-indigo-50">
<div class="min-w-max bg-indigo-500 py-4 text-white font-bold rounded-lg px-4">
min-w-max
</div>
</div>

Preview

min-w-max

Windframe is an AI visual editor for rapidly building stunning web UIs & websites

Start building stunning web UIs & websites!

Build from scratch or select prebuilt tailwind templates