Responsive web design means one website that adapts its layout to the screen it is viewed on. Most visits to most business websites now come from phones, and Google indexes the mobile version of your site, so a layout that only really works on desktop costs you both customers and rankings. Responsive design is no longer just about shrinking a desktop layout; it is about designing for small screens first and enhancing for larger ones. This guide covers the practices that make responsive sites work well.

1. Design mobile-first

Start with the smallest screen. A mobile-first approach forces you to decide what matters most: the core message, the main action, the essential information. Then add layout, imagery and secondary content as screen space allows. Designing desktop-first usually leads to cramped, cluttered mobile pages.

In CSS, mobile-first means writing base styles for small screens and adding min-width media queries for larger ones.

2. Set the viewport

Every page needs <meta name="viewport" content="width=device-width, initial-scale=1">. Without it, phones render the page at desktop width and shrink it. Do not disable zooming; people need to zoom to read small text or images.

3. Use fluid layouts

  • Use relative units (percentages, fr, rem, viewport units) rather than fixed pixel widths for layout.
  • Use CSS Grid and Flexbox for layouts that rearrange naturally.
  • Set a sensible maximum width for content so lines of text do not stretch too far on large screens.
  • Avoid horizontal scrolling at every width.

4. Choose breakpoints based on content

Rather than designing for specific devices, add breakpoints where your layout starts to look wrong. Resize the browser slowly and note where text becomes too long, columns too narrow or elements collide. Common ranges cover phones, tablets, laptops and large desktops, but your content should decide. Container queries let components adapt to the space they are placed in, which is useful for reusable cards and widgets.

5. Make images responsive

  • Use max-width: 100% so images never overflow their containers.
  • Serve different image sizes with srcset and sizes, so phones do not download desktop-sized files.
  • Use the <picture> element for art direction, such as a tighter crop on mobile.
  • Set width and height attributes to prevent layout shifts.

See how to optimise images.

6. Typography that adapts

  • A base font size of around 16px for body text on mobile.
  • Line length of roughly 45–75 characters for comfortable reading on larger screens.
  • Fluid type with CSS clamp() so headings scale smoothly between screen sizes.
  • Adequate line height and contrast. See accessibility in web design.

7. Design for touch

  • Make buttons and links large enough to tap accurately, with space between them.
  • Do not rely on hover to reveal important information or menus; touch screens have no hover.
  • Use the right input types (tel, email, number) so phones show the appropriate keyboard.
  • Make phone numbers tappable with tel: links.

8. Rethink navigation for small screens

A collapsible menu is standard, but keep the most important actions visible: a "Call" or "Book" button, and perhaps one or two key links. Keep menus short and labels clear. For long pages, a back-to-top link or sticky header helps. Make sure the menu is accessible with a keyboard and screen reader.

9. Keep content parity

Do not hide important content on mobile. Google indexes the mobile version, so content missing on mobile may not count. Use accordions or tabs to save space if needed, but keep the content in the page. See the importance of mobile SEO.

10. Handle tables, forms and embeds

  • Tables: allow horizontal scrolling within the table container, or restructure as stacked cards on small screens.
  • Forms: single-column layouts, large fields, visible labels, and as few fields as possible.
  • Embeds: maps and videos should scale with the container using aspect-ratio CSS.

11. Prioritise performance

Responsive design is also about speed on slower mobile connections. Load only what each screen needs, defer non-critical scripts, and test on a mid-range Android phone over mobile data, not only on a fast laptop. See website speed optimisation techniques.

12. Test properly

  • Browser developer tools' device mode for quick checks at many widths.
  • Real devices: at least one iPhone and one Android phone, plus a tablet.
  • Landscape orientation and zoomed text.
  • Lighthouse for performance and accessibility.

Common mistakes

  • Fixed-width elements that cause sideways scrolling.
  • Text too small to read without zooming.
  • Pop-ups that cannot be closed on small screens.
  • Hover-only menus and tooltips.
  • Huge hero images that push content below the fold on phones.

Design systems help

A small design system (consistent spacing, type scale, colours and reusable components such as buttons, cards and forms) makes responsive behaviour predictable. When each component is designed to adapt on its own, new pages work on every screen without extra effort, and the site stays consistent as it grows.

Frequently asked questions

Is responsive design the same as mobile-friendly?

Responsive design is the most common way to be mobile-friendly: one site that adapts. A site can technically display on mobile without being pleasant to use, which is what good responsive design solves.

Do I need a separate mobile site?

No. Separate mobile sites are harder to maintain and prone to SEO problems.

Which breakpoints should I use?

Let the content decide. Common frameworks provide sensible defaults, adjusted where your layout needs it.

Need a site that works on every screen?

Our custom web design service builds mobile-first, accessible websites. Start with a free audit of your current site.

Written by

Priya Sharma

Digital marketing expert helping businesses grow online through SEO and strategic content.

All Articles