Skip to main content
CodingMarble

Web development

Responsive Web Design Checklist for Real Sites

A responsive site adapts to any screen width without horizontal scrolling, tiny text or unreachable buttons. Work through the viewport tag, fluid layout, breakpoints set by content, touch sizes, images, tables, forms and real-device testing, and check each one in your own pages.

By CodingMarble · Published · 5 min read

Watercolour wireframe sketches of website layouts
Photo: Hal Gatewood on Unsplash

Start with the viewport meta tag

Without a viewport declaration, mobile browsers assume a desktop-sized layout of about 980 pixels and shrink it to fit the screen. Your media queries then never trigger, and text becomes unreadable. The fix is one line in the document head, and it is the first thing to check when a site looks like a miniature desktop page on a phone.

HTML· The viewport tag that every responsive page needs.
<meta name="viewport" content="width=device-width, initial-scale=1">

Avoid adding maximum-scale=1 or user-scalable=no. They block pinch zoom, which people with low vision rely on, and accessibility audits flag them. To verify, open DevTools device mode, pick a phone, and confirm the layout width matches the device width instead of showing a zoomed-out desktop page.

Build a fluid layout before you add breakpoints

The most robust responsive pages are fluid by default and use media queries only to adjust what fluid behaviour cannot handle. Use relative units for widths and spacing, let containers shrink with max-width instead of fixed width, and use flexible layout tools such as flexbox wrap and grid auto-fit so columns reflow on their own.

CSS· A card grid that reflows with no media query at all.
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}

.container {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem);
}

The min function inside minmax prevents a card from forcing horizontal overflow on very narrow screens, and clamp keeps headings readable at both ends without a stack of breakpoints. A quick test for fixed-width mistakes: drag the browser window narrower than 320 pixels. Anything that sticks out and causes a horizontal scrollbar has a fixed width or an unbreakable string such as a long URL, and needs overflow-wrap or a smaller minimum.

Choose breakpoints from the content

Devices change every year, so tying breakpoints to named phones and tablets goes out of date. Instead, widen and narrow the window slowly and add a breakpoint where your design starts to look wrong: a line of text becomes too long to read comfortably, a navigation row wraps onto two lines, or a sidebar squeezes the main column. That width is your breakpoint, whatever device it happens to match.

Write styles mobile-first, with the base rules for the narrowest layout and min-width queries layering on complexity. This keeps the default path simple, and small devices, which often have the least processing power, do not have to parse and then override desktop rules. Use rem or em units in queries so the layout also adapts when a user raises their default font size. Keep the number of breakpoints low; if you need eight, the underlying layout is probably not fluid enough.

Touch targets and readable text

A mouse pointer is precise; a thumb is not. Links and buttons need enough size and spacing that a tap lands on the intended one. The WCAG 2.2 guidelines set a minimum target size of 24 by 24 CSS pixels, with exceptions for spacing, and common platform guidance recommends larger targets of roughly 44 to 48 pixels for primary controls. Treat those as floors, not goals. Inline links inside a paragraph are exempt from the minimum, but a footer full of tightly stacked links is a common failure.

  • Body text at 16 pixels or the equivalent in rem; smaller sizes force pinch zoom on a phone.
  • Line length around 45 to 75 characters; cap paragraphs with max-width in ch units.
  • Spacing between adjacent tap targets so a thumb does not hit two at once.
  • No functionality that depends on hover alone; offer a tap or focus equivalent for menus and tooltips.

Test by holding a phone in one hand and trying to use the site with your thumb only. Any control you cannot reach or keep hitting wrongly is a defect, not a user error.

Responsive images and media

Sending a desktop-sized photo to a phone wastes data and slows the page. Use srcset with a sizes attribute so the browser chooses from several widths, and use the picture element only when you need a different crop for small screens rather than just a different size. Always declare width and height so layout space is reserved before the image loads.

HTML· Responsive image with a different crop on narrow screens.
<picture>
  <source media="(max-width: 600px)" srcset="/img/team-square-600.jpg">
  <img
    src="/img/team-wide-1200.jpg"
    srcset="/img/team-wide-600.jpg 600w, /img/team-wide-1200.jpg 1200w"
    sizes="(min-width: 900px) 800px, 100vw"
    width="1200" height="675"
    alt="Five developers around a whiteboard"
    loading="lazy">
</picture>

Videos and embeds need the same treatment: set a max-width of 100% and an aspect-ratio so an iframe does not overflow or collapse. Lazy-load images below the first screen, but not the main image at the top, which should load as soon as possible.

Tables and forms on small screens

Wide data tables are the classic way to break a mobile layout. There are two honest options. For tables where comparing columns matters, wrap the table in a container with overflow-x set to auto, so the table scrolls sideways inside its own box rather than stretching the page, and make it obvious that scrolling is possible. For simple lists of records, restyle each row as a stacked block using display changes at a narrow breakpoint and show the column name beside each value with a data attribute. Keep real table markup so screen readers still announce headers correctly.

Forms need larger inputs, visible labels above fields rather than placeholder-only text, and the right input type so the phone offers the right keyboard: email, tel, number or url. Use autocomplete attributes so the browser can fill known values, and set the font size of inputs to at least 16 pixels, since some mobile browsers zoom the page when a smaller field is focused. Place the submit button where the on-screen keyboard will not hide it, and make validation messages appear next to the field rather than only at the top of a long form.

Test on real devices

DevTools device mode is a fast first check, but it emulates screen size and touch events, not the actual browser engine, memory limits, address bar behaviour or on-screen keyboard. Many bugs only appear on hardware: fixed-position bars that jump when the address bar collapses, 100vh sections taller than the visible area, and scroll lock failing on modals.

Keep a short test list: one recent iPhone, one mid-range Android phone, a tablet if your audience uses them, and the desktop browsers you support, both orientations. If you cannot own the devices, a device cloud service or a friend's phone is better than nothing. For each key page, check that nothing scrolls sideways, every control can be tapped, forms can be completed with the keyboard open, and zooming in to 200 percent does not hide content. Repeat the pass before each significant release, because a new component is the usual way a previously good layout breaks.

Need this built properly for your business?

CodingMarble is a remote studio in India that builds websites, apps and games on fixed packages with the scope written down before payment. Try the free tools we run, or start a project when you are ready.