Frontend Roadmap: HTML, CSS and JavaScript Essentials
#Responsive Design
1 ideas
Frontend Roadmap: HTML, CSS and JavaScript Essentials
Get new #Responsive Design ideas by email
Every Thursday: the week's best ideas, with the newest from #Responsive Design.
Related tags
Responsive Design: A Practical Guide to Flexible Layouts
Responsive design is the practice of building one page that adapts itself to whatever space it is given. Instead of designing for a single screen size and hoping for the best, you describe how the layout should behave as room grows or shrinks. The result is a site that reads comfortably on a phone held in one hand, on a laptop, on a large monitor, and on the many sizes in between that nobody thought to name.
Where the idea comes from
Early web pages were often built as fixed widths, like a poster pinned to a wall. As phones became a common way to browse, designers faced a choice: maintain a separate simplified site, or make one layout that bends. Responsive design chose the second path. Its name comes from that behaviour — the page responds to its container rather than imposing a fixed shape on it.
The building blocks
Read more
Three ideas do most of the work.
- Fluid grids: widths expressed as proportions rather than fixed pixels, so columns share available space and reflow when it runs out.
- Flexible media: images and video that scale down with their container instead of overflowing it.
- Media queries: style rules that apply only when conditions are met, such as a narrow viewport or a wide one.
Breakpoints are the points where the layout changes shape. Good ones follow the content: widen the window and watch for the moment the text becomes cramped or the columns look thin, then adjust there. Choosing breakpoints from a list of device names ages badly; choosing them from your own layout does not.
Two directions of thought
Mobile-first means writing the simplest, narrowest version of the styles and adding complexity as space appears. It tends to produce leaner pages and forces you to decide what matters most. Desktop-first does the reverse: design the full arrangement, then simplify it. Both work; what matters is consistency and testing at the awkward sizes, not only the tidy ones.
Typography, touch and accessibility
Readable text needs a moderate line length and generous line height. Sizes set in relative units respect the reader's own font preferences better than fixed ones. Interactive elements need enough room around them to be tapped without precision, and focus states should stay clearly visible for people navigating by keyboard. Content should reflow and remain complete when zoomed, never hidden behind a narrow screen.
Practical habits
Start from the content, not the canvas. Use relative units where you can. Avoid fixed heights that trap text. Test with a real device as well as a resized browser window, and check long words, long titles and empty states, which are common causes of sideways scrolling. Keep the page light: a responsive layout that downloads heavy assets defeats its own purpose on a slow connection.
Done well, responsive design becomes invisible. The reader simply finds the page comfortable, whatever they are holding.
Videos come from YouTube and posts from Instagram; titles and summaries are our own. All rights belong to their creators.