Last updated on March 19, 2026

Padding

Edit

Usage

Please refer to the documentation on the Tailwind CSS website

Compatibility

Support applies to the documented values and platforms. See the RC compatibility notes for value limits and native migration alternatives. Browser behavior is evaluated separately.

ClassSupport
p-{n}
✅ Supported
p-[n]
✅ Supported
px-{n}
✅ Supported
px-[n]
✅ Supported
py-{n}
✅ Supported
py-[n]
✅ Supported
pt-{n}
✅ Supported
pt-[n]
✅ Supported
pr-{n}
✅ Supported
pr-[n]
✅ Supported
pb-{n}
✅ Supported
pb-[n]
✅ Supported
pl-{n}
✅ Supported
pl-[n]
✅ Supported
ps-{n}
✅ Supported
ps-[n]
✅ Supported
pe-{n}
✅ Supported
pe-[n]
✅ Supported
Legend

Class

-{n} Supports values from theme

-[n] Supports arbitrary values

Icon

✅ Supported

✔️ Partial support on native

🧪 Experimental support on native

📱 Native only

Not supported on native: rejected by the native CSS engine

🌐 Web only

On this page