designwithfocus

Responsive & mobile

What Is Responsive Web Design? Layouts for Every Screen

By Design With Focus Team 5 min read
The same web page shown on a phone, a tablet, and a desktop

Short answer

Responsive web design is an approach that makes a page render well on different screen sizes and resolutions while staying usable. MDN traces the term to Ethan Marcotte in 2010, who described fluid grids, fluid images, and media queries. Modern CSS adds flexbox and grid, which flex by default. A viewport meta element stops phones from laying the page out at a wide desktop width.

Last verified against the sources listed below.

Key takeaways

  • Responsive design is an approach, not a single CSS property or a separate mobile site.
  • Marcotte's 2010 description used fluid grids, fluid images, and media queries.
  • Flexible images use max-width: 100% so they fit the container and do not grow past their own size.
  • Media queries apply CSS when a test matches. MDN says they are not required if the layout is already fluid.
  • MDN's usual viewport tag is meta name viewport with content width=device-width.
  • Do not disable zoom. MDN cites WCAG's minimum 2x scaling and a 5x best practice.

What is responsive web design? It is a way to build one page so the layout, the text, and the images adapt to the screen in front of the reader, instead of shipping a separate site for each device class.

MDN’s responsive design guide calls it an approach for making pages render well on all screen sizes and resolutions while keeping the page usable. It is how you design for a web of many devices, not a single trick in a stylesheet.

Why does one fixed layout fail?

A fixed pixel width is too wide for a phone and too narrow, with empty space, for a large monitor.

HTML by itself already reflows. MDN notes that a page with no CSS will wrap text to the window. The trouble starts when lines stretch across a wide screen, or when you lock the page to a width that forces sideways scrolling on a small one.

web.dev’s responsive web design basics says a responsive site might use 1 column on a phone, 2 on a tablet, and 3 or 4 on a desktop. Those counts are an illustration of the idea, not a required column chart. The same article says not to hide content only because the screen is small. Screen size does not tell you what the person came to read.

This is part of web design: the layout has to stay understandable when the window changes. Responsive design is the part of that work that deals with screen size.

How do fluid grids and flexible images work?

Fluid grids share available space. Flexible images shrink to the container and do not stretch past their own pixel size.

Technique How the docs describe it
Fluid grids Columns or tracks that take a share of the space, using percentages, flexbox, grid, or multi-column layout, instead of a locked pixel width
Flexible images max-width: 100% so an image, picture, or video fits the container. MDN says they scale down but do not grow larger than their intrinsic size
Media queries Tests, such as viewport width, that apply extra CSS only when the test is true. Useful when the fluid layout is not enough

MDN says flexbox and CSS grid are responsive by default. In grid, the fr unit is a share of free space, so 1fr 1fr 1fr is 3 equal tracks. web.dev shows the same idea with 1fr 3fr, and a multi-column layout that adds a column when another 200px fits.

What does a media query change?

A media query applies a block of CSS only when a media type and the feature tests match.

MDN’s guide to using media queries says a query can test the media type, such as screen or print, and features such as width, height, orientation, hover, or resolution. Each feature test sits in parentheses. and combines tests.

The Media Queries Level 5 draft describes the same job in spec language: authors test features of the user agent or the display, then conditionally apply styles with @media. The draft’s date is 19 February 2026, and it is still a working draft.

MDN’s responsive design article says the point where the layout changes is a breakpoint. It prefers relative units over the pixel size of one device, and it describes mobile-first as a single column that gains columns when the screen is wide enough. Its flex and grid demos switch at 600px.

What does the viewport meta element do?

It tells the browser how wide the layout viewport should be, so a phone does not pretend to be a desktop window.

MDN’s responsive design guide shows this as the usual tag:

<meta name="viewport" content="width=device-width">

Without that tag, mobile browsers lay the page out at a wide width and zoom out. MDN cites 980 pixels, including an old iPhone default of width=980px.

web.dev says the usual figure is about 980px, and the CSS Viewport draft says it is typically 980 to 1024 pixels.

MDN’s viewport meta page recommends width=device-width. Omitting initial-scale=1 is usually fine. Add it if overflow makes the browser shrink the page.

The HTML living standard, last updated 2 December 2026, defines meta as a name plus a content value. Viewport is not in that section’s list of standard names.

How do you check the screen you have?

Look at the viewport you actually have, then change the layout where the content breaks.

A viewport size checker reports the current width and height in the browser you are using. Resize the window and watch which breakpoint fires.

web.dev says to let the content decide where the layout changes. It cites about 70 to 80 characters per line, roughly 8 to 10 English words, as a reason to add a breakpoint.

Type can respond too. MDN says not to size text with vw alone, because that text will not zoom. Its pattern is calc() with a rem or em plus a vw term.

When you want a size that also stops at a floor and a ceiling, the fluid typography calculator builds that kind of rule. Keep the zoom warning in mind either way.

The other CSS generators help with buttons and type that still have to fit the same fluid page. web.dev says people scroll down, and they should not have to scroll sideways to read.

Frequently asked questions

What does the CSS Viewport draft call the viewport?

The CSS Viewport Module Level 1 is a W3C First Public Working Draft dated 25 January 2024. It separates the initial viewport, taken from the window, from the actual viewport after the meta tag is processed. Recognized properties include width, height, initial-scale, minimum-scale, maximum-scale, user-scalable, and interactive-widget. The draft says phones have used a fixed layout width, typically 980 to 1024 pixels, then scaled the page down.

Which media types does Media Queries Level 5 keep?

MDN says the surviving media types are screen, print, and all. Media Queries Level 5, a W3C working draft dated 19 February 2026, says queries test features of the user agent or the display, separate from the document, and that they apply in CSS @media rules plus HTML and JavaScript. The draft is still in progress. MDN also lists the operators not, and, and only, and commas that combine queries as or.

Should text use vw units by themselves?

No. MDN says 1vw is 1 percent of the viewport width, so a font set only in vw will not zoom. Do not use viewport units alone. Add vw to a rem or em with calc(), for example calc(1.5rem + 4vw), so the text can still zoom and still grows with the window. A media query can also change a heading size at a wider width. MDN's example for that jump is 1200px.

What width values can the viewport meta content use?

MDN says width can be a whole number of CSS pixels from 1 to 10000, or device-width, which also sets the vw unit. height uses that same numeric range or device-height. initial-scale is a number from 0.0 to 10.0. The recommended tag is width=device-width with no initial-scale. Add initial-scale=1 only if overflow makes the browser shrink the page and you want full zoom at the start.

Does the HTML standard list viewport as a standard meta name?

The HTML living standard, last updated 2 December 2026, defines the meta element for metadata that title, base, link, style, and script do not cover. A name attribute and a content attribute make a pair. Standard names in that section include application-name, author, description, and generator. Viewport is not among those standard names. MDN and the CSS Viewport draft are the pages that document that name and its keys.

Sources