Skip to main content
UI / UXLayout & ResponsiveDiagramBeginner

Aspect Ratio

KO: 종횡비 (Aspect Ratio)·EN: Aspect Ratio·JA: アスペクト比

Locking the width-to-height proportion of media and card frames so layouts stay consistent and shift-free across screen sizes

Table of Contents

Structure Diagram

Common UI Media Aspect Ratios
LandscapeLandscape (16:9 / 4:3)

Video · Thumbnails · Editorial

  • 16:9 (Widescreen)Video players, embeds, hero banners
  • 4:3 / 3:2Portfolio shots, article cards
  • CSS Ruleaspect-ratio: 16 / 9; object-fit: cover;
Square / VerticalSquare & Portrait (1:1 / 4:5 / 9:16)

Commerce · Avatars · Short-form

  • 1:1 (Square)Avatars, album art, product tiles
  • 4:5 / 3:4Fashion lookbooks, social feed posts
  • 9:16 (Vertical)Shorts, Reels, mobile stories
Quick Answer

What is Aspect Ratio?

Locking the width-to-height proportion of media and card frames so layouts stay consistent and shift-free across screen sizes. It is a core concept in Layout & Responsive within UI / UX.

Core Principles

Aspect Ratio defines the proportional relationship between an element's width and height (such as 16 / 9, 1 / 1, or 4 / 5). The native CSS aspect-ratio property replaces legacy padding-top percentage hacks, allowing responsive containers to compute their height automatically from fluid widths.

Crucially, locking an explicit aspect ratio lets the browser reserve space before images or embeds finish downloading, directly preventing Cumulative Layout Shift (CLS).

Practical Takeaways

  • Pair with object-fit: cover: Prevent distorted stretching when source media does not match the container ratio, and tune object-position (e.g., top for portraits) so key subjects stay framed.
  • Watch for content expansion: An element with aspect-ratio will still grow taller if inner text overflows; combine with overflow: hidden or media-only wrappers when strict proportions are required.
  • Include HTML width and height attributes: Providing intrinsic dimensions on <img> alongside responsive CSS lets the browser compute the ratio during initial HTML parsing.

Notable Examples

  • Responsive video embeds: Wrapping players in aspect-ratio: 16 / 9 so iframes scale cleanly across breakpoints.
  • Uniform e-commerce catalogs: Normalizing mixed merchant uploads into crisp 1:1 or 4:5 product tiles.
  • Shift-free skeleton loaders: Matching skeleton placeholder ratios to incoming thumbnails to eliminate layout jumps.