Layout and responsive: Responsive layout checkpoint
A robust layout combines intrinsic sizing, bounded tracks, and spacing that survives narrow widths.
Current edit
Understand the pattern
A robust layout combines intrinsic sizing, bounded tracks, and spacing that survives narrow widths.
A robust layout combines intrinsic sizing, bounded tracks, and spacing that survives narrow widths.
Misconceptions to reject
- If the page fits one desktop viewport, no narrower viewport needs checking.
- Hiding all overflow always makes content accessible.
The preview is a sanitized subset, not a full browser compatibility test.
Worked example and expected result
main { max-width: 70rem; padding: 1rem; margin-inline: auto; }
.layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
img { max-width: 100%; height: auto; }A robust layout combines intrinsic sizing, bounded tracks, and spacing that survives narrow widths.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Review this courseTry an incident drillAnonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.