Short answer
The principles are a fluid grid, flexible images, and media queries, the three ingredients Ethan Marcotte named in 2010. MDN still teaches that trio, and it adds that flexbox and grid are responsive by default. A viewport meta tag with width=device-width is what lets those queries see the phone's real width.
Last verified against the sources listed below.
Key takeaways
- Marcotte's 2010 article names fluid grids, flexible images, and media queries.
- MDN says fluid images use max-width: 100% so they scale down and do not stretch past their intrinsic size.
- Flexbox and CSS grid are responsive by default. The fr unit shares free space.
- Media Queries Level 5 is a W3C Working Draft dated February 19, 2026.
- Without width=device-width, mobile browsers often lay out near 980px and zoom out.
What are responsive web design principles, once the definition is already settled, comes down to three ingredients. Ethan Marcotte’s May 25, 2010 article in A List Apart says fluid grids, flexible images, and media queries are the three technical ingredients for responsive web design. MDN still teaches that trio, using “fluid images” for the second item.
Responsive web design is the approach. This page is the practice: how the grid flexes, how the image shrinks, and when a query should change the layout.
CSS is what you type to do it.
What are the three principles?
They are a fluid grid, flexible images, and media queries.
| Principle | CSS feature | Failure mode |
|---|---|---|
| Fluid grid | Percentages, flex, grid, or the fr unit | Fixed pixel columns that force sideways scroll |
| Flexible images | max-width: 100% plus width and height | A bitmap wider than the viewport, or a jump when it loads |
| Media queries | @media tests on width, orientation, or pointer | A separate site per device, or breakpoints named after phones |
| Viewport | meta name=viewport, width=device-width | A 980px layout zoomed out on a phone |
Marcotte’s point was to stop building a new site for each device. The article shows a fluid magazine layout that still failed below 800 by 600 and on very wide screens, then uses queries to stack columns and resize figures. The three ingredients are how that adaptation is done.
They are not three different products.
How does a fluid grid work?
Columns take a share of the available space instead of a fixed pixel width.
MDN says responsive sites are built on flexible grids so you do not target every device with a pixel-perfect layout. Flexbox items can grow and shrink. A rule of flex: 1 gives each item an equal share.
CSS grid’s fr unit does the same for tracks: grid-template-columns: 1fr 1fr 1fr makes three columns that split the container. web.dev shows 1fr 3fr for a sidebar and a main column, and a grid that fits as many 200px tracks as the row allows.
Marcotte’s 2010 figures use percentages, such as a width that is 197 divided by 633. The math is the same idea as fr. The column is a fraction of its parent.
You can try the behavior in the flexbox playground by narrowing the window until items wrap or stack.
MDN also says you add a breakpoint where the content starts to look bad, not at a device width you memorized. A line that is too long, or a box that wraps one word per line, is the signal.
How should images flex?
Set max-width to 100% and keep the width and height attributes.
MDN says a fluid image uses max-width: 100%. It scales down when the column narrows and does not grow larger than its intrinsic size when the column grows, which avoids a pixelated stretch. web.dev recommends the same cap, often with display: block, and it still wants width and height on the element so the browser reserves space.
A single huge file scaled down in CSS still downloads the large file. MDN points to srcset and picture when you need a smaller source for a small screen.
That is the second ingredient. The grid can be fluid and the photo can still blow out the row if its CSS width is a fixed pixel value wider than the phone.
When should a media query run?
Use one when the layout, not just the column width, needs to change.
MDN says a media query runs tests, such as whether the viewport is at least a certain width, and applies CSS only when the tests pass. The point where the layout changes is a breakpoint. A common pattern is one column for a narrow screen, then a multi-column layout once there is room.
MDN calls designing the narrow layout first “mobile first,” and it prefers relative units in the query over a device’s absolute pixel size.
The Media Queries Level 5 draft, dated February 19, 2026, says queries test features of the user agent or the display, independent of the document, and that they are used in the CSS @media rule. MDN’s media-query guide lists types such as screen and print, and features such as width, orientation, hover, and prefers-reduced-motion.
A query is true when the type matches and every feature test passes.
web.dev says the same tools can test pointer and hover, so a large screen is not assumed to be a mouse. It also says not to hide content only because the screen is small. A pollen count removed from a phone forecast is a missing fact, not a layout fix.
Marcotte’s own examples use pixel queries, including max-width: 600px to stack the page and max-width: 400px to change the figure grid. Those numbers belong to that demo. Copy the method, not the pixels, unless your content breaks at the same place.
What does the viewport meta do?
It makes the phone report its own width so the queries can match.
MDN says that without <meta name="viewport" content="width=device-width">, mobile browsers may claim a wide viewport, such as the iPhone default of 980px, and zoom the desktop layout out. A breakpoint at 480px never runs if the browser says it is 980px wide.
web.dev describes the same fallback, usually about 980px, and adds initial-scale=1 so rotation uses the full width instead of zooming a constant width.
Put that tag in the document head. Then the fluid grid and the queries share one coordinate system. web.dev also warns against maximum-scale and user-scalable values that stop the user from zooming.
Which mistakes break the layout?
They freeze a width, or they build a new site per phone.
| Mistake | What goes wrong |
|---|---|
| Pixel columns on a narrow screen | The page scrolls sideways |
| Image wider than the viewport | Same sideways scroll, even inside a fluid grid |
| No width and height on the image | The layout jumps when the file arrives |
| Breakpoints named for one phone | The next device misses the query |
| No viewport meta tag | Queries see a wide fallback, often near 980px |
| Hiding sections on small screens | People lose content they still need |
HTML alone already reflows text when the window changes. MDN points out that a fixed CSS width throws that away, and that a very long line on a wide screen is hard to read. The principles sit between those two failures: share the space, cap the images, and change the layout only where the content asks for it.
Frequently asked questions
Are media queries required for a responsive page?
Not always. MDN says flexible grids, relative units, and minimum and maximum values can adapt a layout with no media query at all. Queries matter when the layout itself should change, such as stacking columns or moving navigation. Marcotte still listed them as one of the three ingredients, because a fluid grid alone still breaks at very narrow and very wide widths.
What CSS makes an image flexible?
MDN and web.dev both use max-width: 100% so the image shrinks with its column and does not grow past its intrinsic size. web.dev also sets display: block in that snippet. Both sources still want width and height attributes on the img element so the browser can reserve space before the file loads. A fixed pixel width larger than the viewport is what forces sideways scrolling.
Should breakpoints match phone models?
No. web.dev says not to base breakpoints on device classes, brands, or operating systems. MDN says to prefer relative units over the absolute size of one device. Start from a narrow layout and widen the window until the content looks bad, then add a query. web.dev's weather example uses 600px because that widget had too much empty space, not because 600px is a universal phone.
What does the viewport meta tag change?
It tells the browser to use the device width instead of a wide fallback. MDN says mobile browsers used a layout width such as the iPhone's 980px, then zoomed the page out. web.dev says the usual fallback is about 980px and recommends width=device-width plus initial-scale=1 so rotation uses the full width. Do not set maximum-scale or user-scalable in a way that blocks zoom.
How long should a line of text be?
web.dev cites classic readability theory and says an ideal column is about 70 to 80 characters, roughly 8 to 10 English words. It suggests a breakpoint when a text block grows past about 10 words. That is a reading guide, not a ranking rule. A fluid grid can still produce a full-bleed paragraph on a wide monitor.
Sources
- Responsive web design · MDN, 2026
- Using media queries · MDN, 2026
- Responsive Web Design · A List Apart, 2010
- Responsive web design basics · web.dev, 2026
- Media Queries Level 5 · W3C, 2026