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 a drag and drop builder for rapidly building tailwind css websites and UIs

Start building stunning tailwind UIs! 

Build from scratch or select prebuilt tailwind templates