New: Cookbooks and AI ExplanationsStep-by-Step recipes to solve problems connected to Roadmaps and Cheat Sheets. Need more details? Use AI buttons for structured and simple explanations with concrete examples throughout the whole platform.Take a look
Five media queries. One heading. All just to change its size.
What you'll have at the end
A heading whose font size scales smoothly between a minimum and maximum, with zero font-size media queries left
You need
A single heading whose font size is set by a base declaration plus several min-width rules, each one only changing that same property, and a browser you can read computed styles in.
Not covered
Building a full type scale across every heading level at once, or converting a ladder that changes more than font size.
Leans on
Checked 20 Aug 2026
Part of the Responsive Web Design cookbook