Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Responsive Design and Modern CSS (Summary)

You’ve reached the end of Responsive Design and Modern CSS.

What You Can Do Now

Make a site work from a 320-pixel phone to a wide screen with:

…using modern CSS only where it’s safe.

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

00:00 You’ve reached the end of Responsive Design and Modern CSS.

00:04 You can now make a site work from a 320-pixel phone to a wide screen, with mobile-first media queries, fluid sizes, responsive images and container queries, using modern CSS only where it’s safe.

00:18 Here’s Rosa’s home page on a 320-pixel phone. Everything sits in one column, and nothing scrolls sideways. Widen it to 768, and a media query brings in the sidebar.

00:32 At 1280, a second query puts the header on one row. The heading grew smoothly, from 28 pixels to 40. The event cards go from one column to two by themselves.

00:46 Tomás’s card is stacked in the sidebar and side by side on the volunteers page, because it follows its container. The browser picks a smaller hero file for the phone.

00:58 Every plot row with a Free badge stands out, with no class added by hand.

01:04 Put the viewport tag on every page. Start small, and put each breakpoint where the content breaks. Cap a grid’s minimum, so it fits a phone. Give each clamp’s middle value a rem part, and check at 200% zoom.

01:19 A container query follows the slot, not the window. srcset is a hint, so check which file loaded. Look up a newer feature’s Baseline status. Where a feature needs a fallback, put the fallback before the newer value, or use @supports if that value has a variable.

01:39 Next on the path, you’ll build a form for plot applications and check that the whole site works for every visitor. For the big picture, read the roadmap, How to Become a Front-End Developer.

01:53 Thanks for watching.

Become a Member to join the conversation.