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

Get now

p-4 :Tailwind CSS padding class

The p-4 class applies uniform padding of 1rem (16px) to all sides of an element.


p-4 (Padding 4)

The p-4 class applies uniform padding of 1rem (16px) to all sides of an element.

Example Usage

html
<div class="p-4 bg-green-500 text-white">
Padding of 1rem on all sides
</div>

Preview

Padding of 1rem on all sides

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