Padding

Usage

Please refer to the documentation on the Tailwind CSS website

Compatibility

ClassSupport
p-{n}
✅ Full Support
p-[n]
✅ Full Support
px-{n}
✅ Full Support
px-[n]
✅ Full Support
py-{n}
✅ Full Support
py-[n]
✅ Full Support
pt-{n}
✅ Full Support
pt-[n]
✅ Full Support
pr-{n}
✅ Full Support
pr-[n]
✅ Full Support
pb-{n}
✅ Full Support
pb-[n]
✅ Full Support
pl-{n}
✅ Full Support
pl-[n]
✅ Full Support
p-auto
🌐 Web only
px-auto
🌐 Web only
py-auto
🌐 Web only
pt-auto
🌐 Web only
pr-auto
🌐 Web only
pb-auto
🌐 Web only
pl-auto
🌐 Web only
Legend

Class

-{n} Supports values from theme

-[n] Supports arbitrary values

Icon

✅ Full support

✔️ Partial support on native

🧪 Experimental support on native

📱 Native only

🌐 Web only

On this page