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

Get now

px-1: Tailwind CSS padding class

The px-1 class applies padding of 0.25rem (4px) to the left and right sides of an element.


px-1 (Horizontal Padding 1)

The px-1 class applies padding of 0.25rem (4px) to the left and right sides of an element.

Example Code

html
<div class="px-1 bg-yellow-400 text-black">
Horizontal padding of 0.25rem
</div>

Preview

Horizontal padding of 0.25rem

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