All posts
23 September 2026Hassan El Berkaoui

Responsive Web Design Techniques That Hold Up on Every Screen

The responsive web design techniques we rely on: fluid type with clamp(), grid layouts, container queries, responsive images and touch-friendly sizing.

Most of your visitors are on a phone. Google also judges your site by its mobile version. So "responsive" is not a feature anymore, it is the website. These are the techniques we use to make layouts hold up from a small phone to a wide monitor.

Start from the smallest screen

Write the phone layout first, then add rules as the screen gets wider. It forces you to decide what matters most, because a phone only has room for that. Desktop layouts built first and squeezed down later are where most mobile problems come from.

Fluid type with clamp()

Instead of three font sizes at three breakpoints, let text scale smoothly between a minimum and a maximum:

font-size: clamp(2rem, 6vw, 5rem);

That reads: never smaller than 2rem, never bigger than 5rem, and in between follow the screen width. Headlines stay big on desktop and never overflow on a phone. One line, no media queries.

Let the layout decide with grid

CSS grid can create as many columns as fit, without a single breakpoint:

grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

Cards sit three across on a laptop, two on a tablet and one on a phone, automatically. For a more editorial look, like the grid on our projects page, you can still hand-place cards of different sizes and let them fall back to one column on a phone.

Container queries for components

Media queries look at the screen. Container queries look at the space a component actually has. A product card can switch to a compact layout when it sits in a narrow sidebar, even on a wide screen. Every modern browser supports them now, and they make reusable components much easier.

Responsive images

  • Serve different sizes with srcset and sizes, so a phone does not download a desktop image.
  • Use modern formats: WebP or AVIF.
  • Set aspect-ratio or width and height, so the page does not jump while images load.
  • Crop with object-fit: cover and object-position, so the important part stays visible at every size.

Design for thumbs

  • Buttons at least 44 pixels tall, with space between them.
  • Main actions within reach of the thumb, not only in the top corner.
  • Inputs with the right type (email, tel), so the phone shows the right keyboard.
  • Body text at least 16 pixels, which also stops iPhones from zooming into forms.

Navigation that works on a phone

On small screens, keep the one action that matters visible (for us that is "Start a project") and move the rest into a simple menu. A navigation bar that tries to fit everything on a phone ends up with tiny, squeezed links that nobody can tap.

Respect user settings

Check prefers-reduced-motion and tone animations down for people who asked for less motion. Use relative units (rem) so text grows when someone increases their font size.

Test on real devices

Browser tools are a good start, not the finish. Test on at least one real phone, at a small width like 360 pixels, with slow mobile data. Look for text that overflows, buttons that are too close together, and anything that makes the page scroll sideways.

The payoff

A responsive site is not just tidier. It loads faster, ranks better, and turns more phone visitors into customers. Travellers often book a rental from their phone, sometimes on the way, which is why a booking system like Rent 4x4 Morocco has to work perfectly with one thumb.

For what else goes into a solid build, read our web development best practices, and for the design side, the web design trends worth using in 2026. Need a site that works on every screen? Let’s talk.

EasyBookNow

Let’s build
yours.

Tell us what you need. Get a plan and a fixed price.

We work in your language

Tell us about your project.

What do you need?
Budget