Design thinking for better websites. Explore company profiles
Article Connected list and detail views

Master-detail layout design: keep the selected item in context

Use master-detail layout design to connect a selected list item with its detail, balance pane widths and preserve orientation when the view becomes a single column.

Editorial comparison diagram showing Item list, Selected item, Detail pane, Return context for master-detail layout design.

Master-detail layout design should keep a selected item visibly connected to the information shown about it. Balance the list and detail areas around the real content, then design how people move between them on a narrow screen. The pattern is useful when visitors repeatedly inspect items while retaining their place in a collection. It becomes frustrating when the detail changes without a clear selection or returning to the list loses the browsing context.

Check whether two panes help the task

Identify how often people need to move between the collection and an individual item. Frequent inspection can benefit from a persistent list. A long article that people read independently may work better as a normal page.

Do not adopt the pattern merely because it resembles a polished desktop application. The list needs enough useful information to support selection, while the detail needs enough room for its actual content.

Use wireframe review to compare a split arrangement with ordinary page navigation. Test the task with representative content before committing to a dense two-pane composition.

Make the selected item unmistakable

Use a clear selected treatment in the list and identify the same item at the start of the detail. A subtle background tint may be insufficient when several rows use similar decorative colours.

For a hypothetical document workspace, selecting a policy should show that policy's title in the detail area. The list selection and detail heading should not leave the visitor wondering whether a previous item is still displayed.

Keep keyboard focus distinct from selection where the interaction model requires it. Someone moving through controls should understand both where their next action occurs and which item's details are currently open.

Allocate width around real reading needs

A narrow list can support short titles, but longer names and supporting context may require more room. A wide list that leaves only a thin detail column can make the selected information difficult to read.

Use representative extremes: the longest plausible title, a multi-line summary and a detail view containing a table or structured information. The default proportions should not depend on the shortest demonstration item.

The typography guide helps establish useful line lengths. Avoid shrinking both panes' text simply to retain the original desktop ratio.

Define scrolling deliberately

Decide whether the page scrolls as one view or whether the panes have independent scrolling. Each choice can be appropriate, but multiple nested scroll areas need particular care.

If the detail scrolls independently, keep the selected item's identity available where needed. If choosing another item resets the detail position, make that transition predictable. Do not leave a newly selected item halfway down its content because the earlier item's scroll position was retained accidentally.

Likewise, keep the list position useful when the person returns from a detail action. The pattern's purpose is partly to preserve collection context; the implementation should not discard it at every transition.

Design the single-column route

On a narrow screen, two visible panes may leave neither usable. A list-to-detail transition can work well if the return control and current context remain clear.

Preserve the selected item and a useful list position when returning. If filters or sorting remain active, keep them identifiable. A person who has inspected several items should not have to recreate the collection simply because the layout changed orientation.

Use the responsive design requirements to test resizing while an item is selected, not only a fresh page load at each size. The layout should handle the transition without losing the person's task.

If the detail pane allows editing, agree what happens when another item is selected before changes are saved. The design should keep the pending work understandable and provide the product’s intended decision route. Do not let a convenient list click silently discard an unfinished edit.

Plan unselected, loading and unavailable details

Decide what appears before an item is selected. A short useful prompt may be clearer than an empty panel that looks broken. If a default item is selected automatically, make that choice apparent.

When details are loading, keep the new selection clear and avoid presenting the old detail as though it belongs to the newly chosen item. If the detail cannot be obtained, preserve the list and show a focused recovery route.

Test rapid changes between items, a long detail and an item that becomes unavailable. The design succeeds when the relationship stays understandable across these states, rather than only when one convenient row is selected in a static mock-up.

Frequently asked questions

Does a master-detail layout need equal-width panes?

No. Allocate space according to the list's selection information and the detail's reading needs. Equal widths can look balanced while serving neither task particularly well.

Should selecting an item always open its detail immediately?

Choose a clear interaction model for the task and implementation. If focus movement and selection differ, show both states. Avoid an unexplained mixture where some rows update immediately and others require another action.

Can the layout use separate scrolling on mobile?

Assess the actual task and available space. A deliberate single-view transition may be clearer than preserving two tiny independent panes. Test navigation and return context rather than copying desktop behaviour automatically.