Sub topic 11
Responsive Layouts and Breakpoints
Start with the working model
Assume you understand basic web and mobile interface elements such as buttons, forms, menus, and cards. This chapter focuses on how a wireframe changes when the available space changes.
A responsive layout is a layout that adapts to its container or screen size. A breakpoint is a rule that changes the layout when the viewport reaches a chosen width. The viewport is the visible area of a browser or device screen.
Design the content structure first. Then decide how that structure should adapt. Do not begin by copying a desktop screen and shrinking it. Small screens often require different grouping, order, and navigation.
Choose layout rules, not just screen sizes
A breakpoint should mark a content problem, not a popular device model. Add a breakpoint when the current layout becomes crowded, unreadable, or difficult to use.
| Layout concern | Small screen | Wide screen |
|---|---|---|
| Main and secondary content | Stack vertically | Place side by side |
| Navigation | Menu button or compact tabs | Full navigation bar |
| Form fields | One column | Multiple columns when helpful |
| Data tables | Scroll, simplify, or transform | Show more columns |
A common approach is mobile-first design. Write the narrow layout as the default, then add rules for wider screens. In a wireframe, mark whether an element is hidden, moved, resized, or replaced at each breakpoint.
.wf-box {
border: 1px solid #888;
background: #f2f2f2;
padding: 8px;
}
.wf-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
}
.wf-main,
.wf-side {
grid-column: 1 / -1;
}
@media (min-width: 768px) {
.wf-grid {
grid-template-columns: repeat(8, 1fr);
}
}
@media (min-width: 1024px) {
.wf-grid {
grid-template-columns: repeat(12, 1fr);
gap: 24px;
}
.wf-main {
grid-column: span 8;
}
.wf-side {
grid-column: span 4;
}
}This example uses four columns on narrow screens, eight at a medium width, and twelve on wide screens. The sidebar stacks below the main content until the wide layout has enough room to place it beside the main content.
Check behavior at the edges
Test widths just before and after each breakpoint. Look for clipped text, overflowing controls, awkward gaps, and changes that make the reading order confusing. Check landscape mobile screens and zoomed text as well.
Exercise
A checkout form has six fields in two columns on desktop. On a narrow screen, what should you decide before drawing the mobile wireframe?
Show answer
Decide the field order, whether every field remains necessary, and whether the fields become one column. Keep related fields together and preserve a clear completion sequence.