h-32: Tailwind CSS Height class

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


H-32

The h-32 class sets the height of an element to 8rem (128 pixels). This height is useful for sections of a page, such as hero banners, image containers, or larger content blocks.

Code Example

html
<div class="h-32 bg-indigo-500 text-white text-center flex justify-center items-center font-bold">Height: 32</div>

Preview

Height: 32

How to Use

Add the h-32 class directly to your HTML element:

html
<div class="h-32">
<!-- Your content here -->
</div>

Responsive Usage

Use Tailwind's responsive prefixes to apply h-32 at specific breakpoints:

html
<div class="sm:h-32 md:h-32 lg:h-32">
Responsive element
</div>
  • sm:h-32 — applies from 640px and up
  • md:h-32 — applies from 768px and up
  • lg:h-32 — applies from 1024px and up

Customization

You 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

Start building stunning web UIs & websites!

Build from scratch or select prebuilt tailwind templates