Last updated on June 17, 2025

Aspect Ratio

Usage

Please refer to the documentation on the Tailwind CSS website

Compatibility

ClassSupport
aspect-auto
✅ Full Support
aspect-video
✅ Full Support
aspect-square
✅ Full Support
aspect-[n]
✅ Full Support
aspect-{n}
✅ 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

On this page