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

Get now

p-2 :Tailwind CSS padding class

The p-2 class applies uniform padding of 0.5rem (8px) to all sides of an element.


p-2 (Padding 2)

The p-2 class applies uniform padding of 0.5rem (8px) to all sides of an element.

Example Code

html
<div class="p-2 bg-blue-400 text-white">
Padding of 0.5rem
</div>

Preview

Padding of 0.5rem

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