Designing user interfaces with different layouts starts with choosing one structural model per screen before you touch color, type, or components. Pick the layout pattern that matches what the screen is actually for: a single-column flow for reading and forms, a two- or three-panel split for browsing plus detail, cards for scannable collections, or a spatial canvas for relationships. Then lock down a responsive grid, define how the layout reflows at each breakpoint, and test it at the awkward in-between widths. The condition that makes this work is discipline: every layout should come from the same spacing, grid, and component rules, or you get screens that look fine alone and break down as a product.
Most interface problems blamed on "bad design" are really layout-model mismatches—a grid where a linear flow belonged, or a desktop three-column screen crammed into a phone. This guide walks through the decisions in the order a working designer or front-end developer makes them, from choosing the model to checking that it survives real content and translation.
Start With the Screen's Job, Not the Layout
The most common failure is picking a layout because it looks modern. A layout is a container for a task, and different tasks have different natural shapes. Before drawing anything, write one sentence: what is the user here to do, and what must stay visible while they do it?
That sentence usually points at the layout. If the user reads or fills something top to bottom, a single-column flow wins because it gives one clear reading path. If the user compares many items and then drills into one, a split view or master-detail layout wins because the list stays in view while the detail changes. If the user needs to see how parts relate to each other, a spatial canvas or diagram works better than a list ever can. If the user scans and picks, a card collection lets each item carry a thumbnail and a few key facts.
Consider three real screens: an account settings page, a support inbox, and a photo library. Settings is a form—single column, grouped into sections, save at the end. The inbox is a list plus a reading pane—split view, because switching back to the list after every reply is wasteful. The photo library is a scannable collection—cards or a justified grid, because the content itself (the image) carries the meaning. Three tasks, three different layouts, and none of them is wrong.
A quick test: if you removed the layout and described only the task to another designer, would they reach for the same structure? If two people independently propose radically different layouts, the task is probably underspecified, and the fix is to clarify the job before debating the grid.
Define the Content, Flow, and Hierarchy Before the Grid
Layout is the arrangement of content; if the content isn't defined, you're decorating. Do a content inventory for the screen: every field, label, button, image, and bit of helper text, plus the longest and shortest realistic value for each. "Longest realistic value" matters more than you'd think—a name field that holds "Jo" and a name field that holds "Dr. María-José de la Cruz Fernández-Vidal" need different widths, and the layout has to survive the second one.
Then order the content by importance. What is the one thing the user must see or do? What's supporting? What's optional and can collapse? This hierarchy should map onto visual weight—size, position, color, and isolation. On a wide screen, the primary action often sits in the rightmost panel or the upper-right corner; on a narrow screen it drops to a sticky footer. Same hierarchy, different arrangement.
Draw the flow next. Screens are rarely isolated: a list leads to a detail, a form submits to a confirmation, a filter narrows a set. Layout decisions cascade across the flow. If the list is a card grid on desktop, the detail page should feel like a zoom-in on that card, sharing the same primary image and title treatment. If the flow is long (checkout, onboarding), a rail or stepper across the top keeps the user oriented, and that rail needs a mobile form—often a compact progress bar.
Only after the content and flow are clear do you choose column counts, gutters, and breakpoints. This ordering prevents the classic rework loop where the grid is set, then the content arrives and doesn't fit, then the grid is redone.
Pick the Layout Model That Matches the Task
Most production screens are one of a handful of models, or a deliberate combination. Knowing them by name makes the choice and the handoff faster.
Single column. One vertical reading path, full width or centered with a max-width. Best for reading, forms, onboarding, and any flow where seeing too much at once would distract. On large screens it usually becomes a centered column of roughly 600–800 pixels for text, wider for tables.
Two-panel (master-detail). A narrow list beside a wider detail area. Best for inboxes, message threads, settings navigation, and any browse-then-inspect workflow. On tablets the detail often slides over the list; on phones it becomes two stacked screens with a back button.
Three-panel (navigation + list + detail). Adds persistent app navigation. Best for complex workspaces—email clients, project tools, admin dashboards. It only earns its complexity on very wide screens, and it usually collapses into a drawer plus one or two panels below about 1,200 pixels.
Card grid. A scannable set of equal-weight items with a thumbnail and a few facts. Best for media, products, and dashboards of widgets. The card is a self-contained unit; the grid is a responsive number of columns based on minimum card width.
Dashboard or masonry. Multiple differently sized panels on one canvas. Best for monitoring and overviews where several independent metrics matter. The risk is a visual jumble; it needs a strict grid and alignment rules to stay readable.
Spatial canvas or diagram. Free positioning for nodes and connections. Best for mind maps, graphs, and design tools, and worst for anything that needs a reading order, because spatial layouts are hard to make accessible and hard to serialize into a list.
Split or comparison view. Two or more columns showing equivalent content side by side. Best for version diffs, before/after, and plan comparisons. It needs equal treatment of both sides—same units, same labeling—or it misleads.
The practical move: name the model for each screen in your spec. Handoffs and reviews go faster when everyone agrees the screen is "two-panel" rather than "kind of a dashboard thing."
Build a Responsive Grid and Breakpoints You Can Defend
A grid is the invisible skeleton that keeps different layouts feeling like one product. You don't need a fancy system—you need a small number of numbers that everyone uses.
Start with a base spacing unit, commonly 4 or 8 pixels, and build everything from it. Gaps, padding, and margins should be multiples of that unit, which keeps rhythm consistent and makes handoff trivial. Then define a container max-width for reading-heavy columns (roughly 600–800 pixels for body text) so long lines don't fatigue readers, and a wider max-width for data-heavy views.
For breakpoints, choose them from your content's behavior, not from a device list. The classic move is to resize the browser until the layout looks bad, then that width is a breakpoint. Common stages follow mobile-first conventions: a single column below roughly 600 pixels, two columns from around 600–960, and the full multi-panel layout above roughly 960–1,200, with a wide-screen adjustment around 1,440. Treat these as starting points to be verified, not universal truths—your longest label and biggest table decide the real numbers.
Watch the in-between widths. The bugs usually live at 700, 900, or 1,100 pixels, where a three-column layout is technically still on but each panel is too narrow to hold its content. The fix is often a reflow: at 900 pixels, drop the third panel; at 700, collapse the list into a drawer. Define these transitions explicitly in the spec so they aren't discovered by users.
A compact reference for the common models:
| Layout model | Typical use | Reflow to expect | Main failure mode |
|---|---|---|---|
| Single column | Reading, forms, long flows | Rarely changes count; adjusts max-width and margins | Line length too long on wide screens |
| Master-detail | Browsing then inspecting | Detail becomes a separate screen on phone | Losing scroll position in the list |
| Three-panel | Complex workspaces | Panels collapse into drawer + stacked screens | Every panel cramped at tablet widths |
| Card grid | Collections, dashboards | Column count drops; cards stack | Cards too tall or too wide when count changes |
| Dashboard | Monitoring | Widgets restack in one or two columns | Misaligned panels, inconsistent sizing |
| Split comparison | Diffs, plan comparisons | Sides stack or become a toggle | Unequal treatment of the two sides |
Make Components Modular So Layouts Recompose
What makes different layouts feasible without endless rework is components that don't care where they're placed. A card, a field, a button, and a toolbar should look and behave the same in a single column as they do in a three-panel workspace—only their width and arrangement change.
The practical technique is to design components at the smallest realistic width first, then let them fill space rather than assuming a fixed width. A button that's designed at 100 pixels will look odd stretched to 320; a button with fluid padding and a max-width won't. Similarly, an image should have an aspect ratio and a crop rule, so it looks intentional whether it's a thumbnail in a list or a hero in a detail pane.
There's a useful concept from maintainable front-end systems: protect the components that shouldn't reflow. Buttons and form fields shouldn't stretch to enormous widths just because the column is wide, while panels and cards should. Draw that line once in the design system—for example, controls have a block-level max-width of around 400 pixels, while content regions stretch—and every layout inherits the rule automatically.
Modularity also means naming your regions. If you call the pieces navigation, list, and detail, then every layout is a different arrangement of the same named parts, and swapping models becomes a configuration change rather than a redraw. That vocabulary also carries into front-end code, where layout regions map cleanly to landmarks and accessibility roles.
Design Responsively: Mobile-First and the Reflow Rules
Responsive design isn't "shrink until it breaks." It's a set of deliberate reflow decisions, and the cleanest way to arrive at them is to start narrow and add.
Design the phone layout first. One column, content in priority order, primary action reachable. That forces you to decide what truly comes first, and it exposes content that's hiding behind a nice desktop arrangement. Then expand: at the two-column stage, bring the list back beside the detail; at the three-panel stage, restore persistent navigation. Each step adds something the previous one couldn't afford.
Write the reflow rules next to the layout in the spec. "At 1,200 pixels, navigation becomes a persistent rail; below that it becomes a drawer." "At 900 pixels, the detail panel opens over the list without a page change." These rules are the contract between design and code, and they prevent the "we'll figure it out at implementation" drift that produces inconsistent products.
Two techniques do a lot of work here. Grid auto-placement lets a card grid decide its own column count from a minimum card width, so you specify "cards at least 240 pixels, 16-pixel gap" instead of counting columns. Container-aware layout lets the card itself rearrange its internal content based on the space it gets, which matters when the same card appears in a narrow list and a wide dashboard.
Test at the seams. Keep a short list of widths you check every layout at—commonly around 320, 600, 768, 1024, 1280, and 1440—and reject anything that only looks right at one of them. Check zoom too: at 200% zoom a 1,280-pixel layout behaves like a 640-pixel one, and if that breaks, it breaks for users who genuinely need it.
Handle Navigation, Density, and Motion Across Layouts
Different layouts put navigation in different places, and consistency here is worth more than cleverness. On a phone, a bottom bar or a drawer is the norm; on a wide screen, a persistent side rail or a top bar. The rule that saves confusion: the destination set stays identical across layouts, and only its presentation changes. If a section is a tab on mobile, it should be a rail item on desktop, labeled the same way.
Density is the quieter layout decision. A list on a wide screen can afford row height of 48–56 pixels with metadata visible; the same list on a phone needs tighter rows and reveals metadata on tap. Define at least two densities—comfortable and compact—and specify which layouts use which. Tables are the clearest case: sortable, filterable data tables legitimately differ from mobile cards, and the honest move is to let them differ rather than force a data table into a phone.
Motion should explain the layout change, not decorate it. When a split view collapses into stacked screens, the detail view sliding in tells the user the list is still there. When a drawer opens, a short slide plus a scrim clarifies it's temporary. Keep transitions brief—in the 150–300 millisecond range is standard for interface motion—and respect reduced-motion preferences by swapping slides for instant changes. A layout transition that's slow makes the system feel heavy; one that's missing makes the change feel like a page reload.
Test Real Content, Long Flows, and Edge Cases
Layouts fail on real content, not on the polished placeholder text in the mockup. So test with the longest realistic strings, the smallest and largest counts, and the messiest real data.
Run a short content stress test on every new layout. Put in the longest name, the longest title, the largest number (and the negative and the one with units), a missing image, an empty state, and a translation into a language with longer words. German compound nouns and Finnish agglutination can add a large percentage to a label's length; if your buttons are fixed-width, something will clip. Right-to-left languages flip not just text but often the entire layout direction, so anything positioned absolutely or with left/right margins needs reconsidering.
Test the flow, not just the screen. Complete a task end to end at the phone width and the desktop width. Watch for lost state: if filtering a list updates the detail panel during the transition, the user can end up looking at a detail that no longer matches the list. Watch for scroll loss: returning from a detail screen to a long list should restore position, not jump to the top.
Edge cases worth a checklist line each: empty data, an error state, loading placeholders that match the final layout (skeletons should mirror real geometry, or the page jumps), a data set of exactly one and of many thousands, and a very short viewport such as a landscape phone, where a sticky footer and a sticky header can squeeze the content area to nothing.
Accessibility and Performance Are Layout Requirements
Accessibility follows the layout, so it belongs in the layout phase, not in a late audit. Reading order should match visual order; if your three-panel layout visually puts navigation first but your markup orders it last, screen reader users get a different page. Headings should nest logically (one top-level heading per screen, sections beneath), which also makes the structure meaningful for assistive technology. Keyboard focus should follow the visual flow, and modals—like that drawer or a detail overlay—need focus trapped inside them while open and restored to the trigger on close.
Tap targets need a minimum comfortable size, commonly cited as around 44 by 44 pixels, and layouts that cram controls into dense toolbars routinely violate it. Zoom and reflow matter too: content should still work when users enlarge text. And color-based meaning—a red error border alone—breaks for color-blind users, so pair it with text or an icon.
Performance is a layout property because layout shift is visible. Reserve space for images and ads with explicit dimensions or aspect ratios, and render loading placeholders at the final geometry. A page that rearranges itself after load is a layout bug even if every pixel is pretty in the static design. Test on a throttled connection and a mid-range phone, where reflow costs are most visible.
Common Layout Failures and How to Diagnose Them
Most layout problems fall into repeating patterns. Learning to name them shortens the fix.
The cramped in-between. The layout looks right at 1,280 and at 375 but broken at 900. Cause: breakpoints were copied from a framework rather than chosen from content. Fix: resize continuously and reflow at the widths where content actually fails.
The lost context. After opening a detail, the user can't remember which list item they came from, or the list scroll vanished. Cause: the master-detail relationship was implemented as a full navigation. Fix: preserve the list state and mark the active item.
The stretched control. A form field or button spans a huge desktop column and looks ridiculous. Cause: no max-width protection on controls. Fix: cap control widths while letting content regions stretch.
The card that can't decide. Cards in a grid are wildly inconsistent in height, and the grid looks ragged. Cause: fixed card heights with variable content, or no content clamping. Fix: either clamp the content to a fixed line count with "more" behavior, or let the grid align rows and accept varied heights.
The unreachable action. The primary button sits below the fold on a laptop, or behind a sticky header. Cause: layout order optimized for aesthetics rather than the task. Fix: reorder so the primary action is high in the visual and DOM order, and check the actual viewport height.
The overcrowded toolbar. Controls are packed into one row and become tiny. Cause: density chosen for the screen rather than the content. Fix: allow overflow into a menu, or split the toolbar into two rows at tighter widths.
The diagnostic habit that catches most of these early: view every layout with real content at three widths and with zoom, then complete one task on each. It takes minutes and surfaces the failures that otherwise ship.
A Workflow You Can Repeat
Here's a sequence that keeps layout decisions ordered and checkable.
Prerequisites: the screen's one-sentence job, a content inventory with longest realistic values, the flow it belongs to, and the existing design system's spacing units and component rules. If any of these is missing, get them first—layout built without them gets redone.
1: Write the screen's job and the single most important element. 2: List every content element and rank it by importance. 3: Name the layout model (single column, master-detail, three-panel, card grid, dashboard, canvas) and note why it fits the job. 4: Sketch the phone-width arrangement in priority order. 5: Add the wider arrangements stage by stage and record the reflow rules and breakpoints. 6: Place content on the grid using the design system's spacing units, with control max-widths and content stretch rules applied. 7: Stress the content: long strings, empty states, loading frames, errors, translation, and RTL. 8: Check navigation consistency and density across stages. 9: Verify accessibility basics: reading order, headings, focus flow, target sizes, zoom. 10: Test the full task at phone and desktop widths with real data, and fix what breaks.
What to expect: a layout that looks intentional at every width, with the same task completable at each stage. How to check success: hand the spec to someone who didn't design it and see if they can state the breakpoints and what changes at each one. If they can't, the rules are still implicit.
A realistic scale check: a mid-sized product with four core flows might define three layout models, six or seven breakpoints, two densities, and roughly ten shared components. Everything else should be arrangement. If you find yourself drawing a new model per screen, the problem is upstream—usually an unclear screen job or a design system missing a component.
The one rule worth repeating: choose a layout per screen from the task, and make every layout use the same grid, spacing, and component rules. Variety in layouts is fine and often necessary; variety in the underlying system is what makes a product feel chaotic.