
What is
responsive design?
Responsive design makes your website work equally well on mobile, tablet and desktop, with one and the same code.
Responsive design is a way of building websites where layout, images and text automatically adapt to the screen they are shown on. The same page therefore works on mobile, tablet and desktop, without needing separate versions for each device. The content is the same, but it is rearranged and scaled to fit the space.
The term was coined by web designer Ethan Marcotte in 2010, when smartphones really took off. Today, responsive design is standard for all professional websites, and mobile accounts for a large share of the traffic on most websites.
Flexible grids: columns and boxes are measured in percentages or relative units instead of fixed pixels.
Media queries: CSS rules that change the appearance at specific screen widths, known as breakpoints. Three columns on desktop can, for example, become one column on mobile.
Flexible images: images scale to the available space, and the browser can fetch smaller image files for small screens.
Viewport setting: a line of code in the HTML that tells the phone to display the page at the right width.
Many now design mobile first: you start with the smallest screen and add elements as space increases. It forces priorities and often gives a tidier result on all screens.
Breakpoints should be set where the design actually needs them, not by specific phone models. New devices and screen sizes appear all the time.
User experience: a page that is hard to use on mobile leads to frustrated visitors and fewer purchases. Good UX on mobile is crucial.
SEO: Google uses the mobile version of the page when assessing it, through mobile-first indexing.
Speed: correctly scaled images and clean code give better Core Web Vitals.
Easier maintenance: one codebase and one URL per page, instead of separate mobile pages.
A good UI on mobile is about more than shrinking the content. Buttons must be big enough to hit with your thumb, text readable without zooming and forms easy to fill in.
Responsive design also gives better data. When all devices use the same URL, links, shares and statistics are collected at one address instead of being spread across separate mobile and desktop versions.
Large images that load on mobile without being scaled down.
Menus, pop-ups and banners that cover the content on small screens.
Tables and content that cause horizontal scrolling.
Only testing in the browser's developer tools, and not on real phones.
Maverix in Oslo builds websites that are fast and easy to use on every screen.
UX: responsive design is a prerequisite for a good user experience on mobile.
Core Web Vitals: a good responsive setup gives faster and more stable pages.
UI: the interface must be adapted so it works on all screen sizes.
Mobile-first: Google assesses the mobile version of your page, so it must be as good as the desktop version.
See all the terms in the glossary.