A video aspect utility reserves the player footprint before playback controls initialize. The width of the enclosing column drives the final height.
Worked example
<div class="demo w-full max-w-60 aspect-video">Widescreen aspect ratio</div>Implementation notes
A video player may supply its own fixed dimensions. Confirm those attributes and the wrapper agree before adding more layout utilities.
Try it yourself
Move the player from a full-width section into a two-column layout.
Open the Tailwind CSS example →Editorial date April 14, 2026 · Published December 6, 2026