Skip to main content
Version: v2

Aspect Ratio

Usage

Please refer to the

documentation on the Tailwind CSS website

Example

Compatibility

ClassNative (StyleSheet)Web (CSS)
aspect-auto
aspect-video
aspect-square
Legend

Class

-{n} Supports values from theme

-[n] Supports arbitrary values

Icon

Full support

✔️ Partial support

Not supported