Layout and responsive: Source order
Visual reordering can differ from keyboard and reading order. Preserve meaningful source order instead.
Current edit
Understand the pattern
Visual reordering can differ from keyboard and reading order. Preserve meaningful source order instead.
Visual reordering can differ from keyboard and reading order. Preserve meaningful source order instead.
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
.layout { display: flex; }
.layout { flex-direction: column; }
@media (min-width: 48rem) { .layout { flex-direction: row; } }Visual reordering can differ from keyboard and reading order. Preserve meaningful source order instead.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Next: Layout and responsive: Overflow preventionTry 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.
Keep learning
- 01Layout and responsive: Desktop media queryA min-width query layers a wider arrangement on top of a simple mobile-first layout.Practice
- 02Layout and responsive: Overflow preventionShrinkable tracks and wrapping text solve causes of overflow without hiding inaccessible content.Practice
- 03Layout and responsive: Responsive layout checkpointA robust layout combines intrinsic sizing, bounded tracks, and spacing that survives narrow widths.Practice