Is your site a pain to use on a phone? Responsive web design fixes that by letting one layout reshape itself to fit any screen, using a viewport tag, flexible grids, fluid images and media queries.
For the bigger picture of planning a site, see our guide to website design.
| Item | Value |
|---|---|
| Term coined by | Ethan Marcotte, 2010 |
| Original ingredients | Fluid grids, fluid images, media queries |
| Typical default mobile render width | About 980px |
| Recommended viewport value | width=device-width, initial-scale=1 |
| Image width rule | max-width: 100% |
| Minimum card size in the grid demo | 200px |
These figures come from web.dev’s responsive basics guide and MDN’s responsive design article. Documentation changes over time, so check the source before you rely on them.
What responsive web design actually means
Responsive design is a design approach, not a separate technology. MDN describes it as a set of best practices for building a layout that can respond to whatever device is viewing the content.
The idea was originally defined by Ethan Marcotte in A List Apart, and MDN notes that the term was coined in 2010. It described three ingredients working together:
- Fluid grids that stretch and shrink with the screen.
- Fluid images that never overflow their container.
- Media queries that apply different CSS depending on the device.
In practice, web.dev gives this example: a responsive site might show a single-column view on a phone, two columns on a tablet, and three or four columns on a desktop computer. Modern responsive design also accounts for touch screens, so the goal is a good experience for everyone, not just a smaller picture of the desktop page.
Why fixed-width pages fall short
Plain HTML is already fluid. MDN points out that a page with no CSS reflows its text to fit the viewport when you resize the window.
The trouble starts when you add layout. Setting a fixed width leads to scroll bars on narrow devices and too much empty space on wide screens, according to the same MDN article.
Phones have not become a lesser audience either. MDN says you should still serve mobile users a suitable experience, because battery life and bandwidth remain real constraints.
Set the viewport first
Without a hint, mobile browsers render the page at a desktop width, usually about 980px, then scale everything down to fit. The result is inconsistent fonts and a lot of pinching to zoom.
The fix is a meta viewport tag in the head of the document with the value width=device-width, initial-scale=1. The first part makes the page match the screen’s width in device-independent pixels, and web.dev explains that initial-scale=1 lets the page use the full landscape width after rotation.
Resist the urge to add minimum-scale, maximum-scale or user-scalable. web.dev advises against them because they can stop people from zooming, which causes accessibility problems.
How do fluid images and flexible grids work?
Start with images, the most common cause of overflow. web.dev recommends giving every image a max-width of 100%, which shrinks it to fit the available space without stretching it beyond its original size.
Keep the width and height attributes on your img tags as well. They let the browser reserve space before the image loads, which helps prevent layout shifts, as the same guide notes.
For columns, pixel measurements force horizontal scrolling on small screens, while percentages make columns narrower as the screen shrinks. Modern CSS makes this easier: flexbox, grid layout and multicol all build flexible layouts, and web.dev’s grid demo fits as many cards per row as possible with a minimum size of 200px.

Media queries and breakpoints
Media queries run a test, such as whether the screen is wider than a certain width or resolution, and apply CSS only when it passes. MDN covers them alongside mobile-first design and breakpoints.
Early responsive sites leaned on floats and media queries to switch layouts at set breakpoints. Today, according to MDN, modern CSS layout methods are inherently responsive, and the web platform now has many features that make responsive sites easier to build.
Layout is one piece of a wider system, and the web design principles guide shows how spacing, hierarchy and consistency fit around it. If you are choosing a palette next, our notes on website color schemes are a useful companion.
Common mistakes to check before launch
Most responsive bugs come from a short list of habits. Check your pages against these:
- Content wider than the viewport, which forces sideways scrolling.
- A missing viewport tag, so the page loads zoomed out.
- Images without width and height attributes.
- Scaling controls that block zooming.
- Serving phones a heavy desktop experience when a visitor only wants one quick task.
You do not need to hunt for the first two by eye. web.dev points to Lighthouse audits that flag a missing viewport tag and content that is not sized correctly for the viewport.
For the last item, MDN gives the example of a travel site visitor who just wants flight times and delay information, not an animated globe. Decide what a phone visitor most likely needs and put it first.
Frequently asked questions
Is responsive web design a framework or a plugin?
Show answer
Neither. It is a way of building layouts, and MDN stresses that it is an approach rather than a technology you install.
Do I still need a viewport tag if my CSS is flexible?
Show answer
Yes. A page that lacks the tag loads very zoomed out and its text is hard to read, according to web.dev.
Do flexbox and grid replace media queries?
Show answer
They handle much of the reflowing on their own. Media queries remain the tool for applying CSS only when a condition, such as screen width, is met.
How can I find content that overflows on small screens?
Show answer
Run the Lighthouse audit for content that is not sized correctly for the viewport, then look at images and fixed-size elements first, as web.dev suggests.



