04
Responsive design

Responsive design

Build pages that look right at 320 pixels and at 2560. Eight beginner-friendly lessons on the modern responsive toolkit.

~ 130 min·8 lessons·updated apr 2026

What you'll learn


Lessons

Read in order. Each lesson stands on its own, but the order is deliberate.

8 lessons · ~115 min total

  1. 01
    Why responsive is the default
    what mobile-first actually means, and why it's not just smaller.
    12 min
  2. 02
    The viewport meta tag
    the one line of html that decides whether phones zoom out or render properly.
    10 min
  3. 03
    Media queries
    min-width, max-width, and the user preferences your css can listen to.
    16 min
  4. 04
    Container queries
    styling a component by its own width instead of the page's.
    17 min
  5. 05
    Fluid type and space
    one scale that bends with the screen, using clamp, min, and max.
    15 min
  6. 06
    Responsive images
    srcset, sizes, and picture — letting the browser pick the right file.
    15 min
  7. 07
    Responsive layouts in practice
    auto-fit grids and flex-wrap. card lists that shrink without breaking.
    18 min
  8. 08
    Print and reduced-data
    @media print and prefers-reduced-data. the cases every senior dev has shipped.
    12 min

Prerequisites

  • · CSS fundamentals
  • · Flexbox or Grid — either is fine

After this, try