Module 08 of 11

Responsive Design

Lessons

About This Module

People visit your page on phones, tablets, laptops, and wide desktop monitors, and a layout that looks perfect on one screen can be unusable on another. Responsive design is the practice of building a single page that adapts to whatever screen it lands on, instead of maintaining separate versions for each device. With Flexbox and Grid already in your toolkit, this module adds the tools that make those layouts adapt.

It starts with the viewport meta tag and media queries — the syntax, where breakpoints go, and why mobile-first is the recommended way to think about them. A second lesson digs into how media queries work and how mobile-first compares with desktop-first. You'll then look at responsive images, which deliver the right file for each screen, and finish with fluid sizing using clamp(), which lets values scale smoothly with the screen and often removes the need for extra breakpoints.

Watch the lessons in order, then continue on to Transitions & Animations.

Lessons

4 videos
01

CSS Media Queries & Responsive Web Design Tutorial for Beginners

Dave Gray shows how a media query changes your page design based on screen and browser size, starting with the viewport meta tag, media query syntax, and thinking mobile first.

02

CSS Media Queries: How They Work for Responsive Design

Covers what media queries are, how to use them, and how mobile-first compares with desktop-first approaches.

03

Responsive Images Using srcset and sizes

Why responsive images matter for user experience and site speed, and how to use HTML elements like picture along with srcset and sizes to serve the right image.

04

Stop Using So Many Media Queries: Use clamp() Instead

Introduces the min(), max(), and clamp() functions for modern responsive design, so values scale with the screen instead of needing a breakpoint for every change.