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

Get now

h-8: Tailwind CSS Height class

The h-8 class sets the height of an element to 2rem (32 pixels).


h-8

The h-8 class sets the height of an element to 2rem (32 pixels). This is useful for defining a small but visible element, such as buttons, navigation links, or small containers.

Code example

html
<div class="h-8 bg-indigo-500 text-white text-center rounded-md font-bold">Height: 8</div>

Preview

Height: 8

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