Skip to content

Glossary: Tailwind CSS

aspect-ratio

Also written: aspect-4/3, aspect-square, aspect-video

A property (and Tailwind classes) that sets an element's width-to-height proportion so the height follows the width, like 4/3 for the shop photos.

Where the book teaches it

Related terms

object-fit