w-24: Tailwind CSS Width class

The w-24 class sets the element width to 6rem.


w-24

The w-24 class sets the element's width to 6rem.

Example Code

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

Preview

w-24

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