Skip to content
Web Design & Development

How to Get Responsive Design Right

Building one page that adapts its layout, type and images to the viewport it is being read on, rather than maintaining separate mobile and desktop sites.

MediaScaleUp Editorial Team 3 min read 10 views
How to Get Responsive Design Right

What is at stake

Mobile is the majority of traffic on most sites and the version Google indexes, so a layout that only works at desktop width is a layout that only works for the minority of readers and none of the crawlers that matter.

The playbook

  1. Design the narrow layout first, because it forces the content hierarchy to be decided rather than inherited
  2. Set breakpoints from where the design stops working, not from a list of phone models
  3. Use container queries for components that appear in more than one column width
  4. Serve appropriately sized images with srcset and sizes rather than one file scaled by CSS
  5. Test with the browser zoomed to 200 per cent as well as at narrow widths

Where it goes wrong

Avoid:

  • Hiding content on mobile that desktop visitors get, which changes what is indexed
  • Fixed pixel widths on anything that holds text
  • Disabling zoom with user-scalable=no, which breaks the page for anyone who needs to magnify it
  • Treating tablet as an afterthought between two designs that were made properly
What to do and what to avoid with responsive design, side by side
Good practice against the usual mistakes, from the sources listed below.

The numbers behind it

Published figures for Responsive Design
MeasureFigure
What Google indexesthe mobile version of the page, under mobile-first indexing
Common breakpoint practiceset breakpoints where the content breaks, not at named device widths
Minimum target size, WCAG 2.2 AA24 by 24 CSS pixels
Viewport meta requirementwidth=device-width, initial-scale=1
Modern layout primitivesflexbox, grid, container queries and clamp() for fluid type

Getting outside help

When to hand it over: Bring in help when the mobile and desktop versions have drifted into different content, when a rebuild keeps regressing at particular widths, or when a legacy template cannot be made responsive without replacing it.

Where this comes from

The figures and practices above come from the sources listed.

Working on something like this?

We take on Web Design & Development work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.

Where to go next

Spotted something wrong? Report an error on this page. We correct on the page and say what changed.

All services

The work behind this article, and what it costs.

MediaScaleUp Editorial Team

Articles here are researched, written and checked by the MediaScaleUp studio team before they are published, and dated when they are reviewed.

Keep reading

More in Web Design & Development