Skip to main content

Margin

Usage

Please refer to the documentation on the Tailwind CSS website

Compatibility

ClassNative (StyleSheet)Web (CSS)
m-{n}
m-[n]
mx-{n}
mx-[n]
my-{n}
my-[n]
mt-{n}
mt-[n]
mr-{n}
mr-[n]
mb-{n}
mb-[n]
ml-{n}
ml-[n]
m-auto
mx-auto
my-auto
mt-auto
mr-auto
mb-auto
ml-auto
Legend

Class

-{n} Supports values from theme

-[n] Supports arbitrary values

Icon

✅ Full support

✔️ Partial support

❌ Not supported