Module 16: Responsive Websites

Lesson 4 of 5 · 15–25 minutes

Breakpoints

🏠The everyday picture

A curtain that's adjusted where the window needs it, not at fixed marks on the rail. You add an adjustment where the view starts to look wrong.

📘What it really is

🖱️Try it

In developer tools' device mode, choose Responsive and drag the width slowly from 320px to 1400px. Write down every width where something looks wrong, and fix each with a media query or a more flexible rule.

✅Quick check

Should you set breakpoints for every popular phone model?

Show the answer

No. Set them where your content starts to look wrong; there are far too many devices.

Your card grid uses repeat(auto-fit, minmax(220px, 1fr)). Does it need a breakpoint?

Show the answer

Usually not: it changes the number of columns by itself.

← PreviousMobile-first and media queries
ProLearners Assist