All topics

What responsive web design is

Last reviewed

The short version

  • A responsive page changes its layout to fit the screen it's shown on.
  • It's one page, not a separate phone site.
  • Three parts make it work: a fluid grid, flexible images and media queries.
  • A designer named it in 2010.[1] The first attempts came earlier.

One page, many screens

People open the same web page on a phone, a tablet, a laptop and a TV. Each screen has a different width. A page that only looks right on one of them is a problem on the others.

Responsive web design (often shortened to RWD) fixes this. It's an approach that makes a page work across the full range of devices and sizes.[2]

Three screens drawn side by side: a phone with boxes stacked in one column, a tablet with two boxes in a row above one wide box, and a desktop with three columns.
One page can take three shapes.

Notice that the content doesn't change. The phone shows the same boxes as the desktop. Only the arrangement changes.

Why a fixed width fails

You could build a page exactly 1000 pixels wide. On a big monitor that leaves a lot of empty space. On a phone it's far too wide.

MDN, the web docs from Mozilla, says this plainly. A fixed width leads to scroll bars on narrow devices and too much empty space on wide screens.[2]

Here's the same article on Wikipedia in a wide window:

The Wikipedia article on responsive web design in a wide window. A contents list is on the left, the article text is in the middle and a panel of display settings is on the right.
The same Wikipedia article in a wide window (1280 pixels): contents, text and settings sit side by side. Screenshot: Wikipedia, captured 2026-11-07.

And in a narrow one. The text, menu and pictures have been rearranged into one column:

The Wikipedia article on responsive web design in a narrow window. There is one column: a small bar of icons at the top, then the title, a short note and a picture, with the article text in the same single column.
The same article in a narrow window (390 pixels): everything stacks into one column. Screenshot: Wikipedia, captured 2026-11-11.

Wikipedia's current look, a skin called Vector 2022, is a responsive one.[1] One page adapts to both widths.

A technique, not a tool

Responsive design isn't a separate technology. It's an approach, made from ordinary HTML and CSS.[2] You don't install it. You build pages in a certain way.

The three parts

In 2010, a designer named Ethan Marcotte gave the idea its name.[1] His version used three things: fluid grids, fluid images and media queries.[2]

Three stacked labelled bars: 1. Fluid grid, widths use percentages. 2. Flexible images, pictures shrink to fit their box. 3. Media queries, extra rules switch on at certain widths.
The three parts of responsive design.

Here's what each one means:

  • A fluid grid sizes page elements in relative units, like percentages, not fixed units like pixels.[1] The fluid layouts page shows how.
  • Flexible images shrink so they never stick out of their box. The images page covers this and more.
  • A media query is a rule that switches on only for certain screens. See media queries and breakpoints.

One more thing sits underneath all three. Phones need a small tag in the page head to report their true width. That's the viewport tag.

Where the idea came from

Marcotte didn't invent flexible pages from nothing. Wikipedia names an Audi website as the first major site with a layout that adapted to the browser width. It launched in late 2001.[1] By 2008, people already used words like "flexible", "liquid" and "fluid" for such layouts.[1] Marcotte gave the whole approach one name.

The need grew as phones spread. Responsive design became more important once mobile users made up most website visitors.[1]

Next, learn the small tag every responsive page needs: the viewport tag.

Sources

  1. Responsive web design, Wikipedia (accessed 2026-11-11)
  2. Responsive web design, MDN Web Docs (accessed 2026-11-11)