Skip to main content
Version: v4

Margin

Usage

Please refer to the

documentation on the Tailwind CSS website

Compatibility

ClassSupport
m-{n}✅ Full Support
m-[n]✅ Full Support
mx-{n}✅ Full Support
mx-[n]✅ Full Support
my-{n}✅ Full Support
my-[n]✅ Full Support
mt-{n}✅ Full Support
mt-[n]✅ Full Support
mr-{n}✅ Full Support
mr-[n]✅ Full Support
mb-{n}✅ Full Support
mb-[n]✅ Full Support
ml-{n}✅ Full Support
ml-[n]✅ Full Support
m-auto✅ Full Support
mx-auto✅ Full Support
my-auto✅ Full Support
mt-auto✅ Full Support
mr-auto✅ Full Support
mb-auto✅ Full Support
ml-auto✅ Full Support
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