Responsive design
Building one page whose layout adapts to the screen it's shown on, using flexible grids and images and layout changes at set widths (breakpoints).
Also called responsive web design, RWD
Example
An online shop shows four products per row on a laptop and two per row on a phone.
When to use it
Make sure content works at 320 CSS pixels wide without sideways scrolling, a WCAG rule that mainly helps people who zoom in a lot. Put the most important content first on small screens, and test at several sizes.
Watch out
A mobile-first design carried straight to desktop can feel stretched out, so design for each screen size.
The evidence 8 sourced claims
Every sentence on this card traces back to one of these claims, each linked to its source. How we research
Ethan Marcotte coined 'responsive web design' in 2010, built from three ingredients: fluid grids, flexible images and media queries (CSS rules that apply at certain screen sizes). He argued for one design that adapts rather than a separate site per device.
In responsive design every device gets the same page code, and CSS changes the layout at set widths (breakpoints), e.g. three columns on desktop, two on a tablet, one on a phone.
WCAG 2.2 (Level AA) Reflow: content must work without scrolling in two directions at a width of 320 CSS pixels (the same as a 1280-pixel-wide screen zoomed to 400%), except parts that need a 2D layout such as maps or data tables. Responsive layouts that stack content are generally fine.
Reflow mainly helps people with low vision who zoom in a lot, so they don't have to scroll sideways on every line and lose their place; people on small screens benefit too.
Mobile-first means designing for the small screen first and then scaling up. Carried straight to desktop it can hurt: hidden (hamburger) navigation was used less on desktop than on mobile (54% vs 77%), so NN/g advises designing for each screen size while keeping content consistent.
Mobile-first layouts can look stretched out on desktop ('content dispersion'): more scrolling and clicking, related details split across screens, and false page ends. In 13 usability sessions people preferred the denser versions.
In a 20-person phone study, a responsive tourism site did better overall than a mobile adaptive one, but the differences were not consistently significant and satisfaction was not clearly higher.
On small screens there is less room, so responsive pages need the most important content first; stacking can create very long pages, and hidden content should be chosen by user needs. Layouts must be tested at different sizes and orientations.