Debug broken CSS layouts, grid tracks, and stacking contexts in DevTools
8 steps · about 1 h 38 min · Beginner
- Firefox DevTools: Examine and edit CSS (guide, Mozilla, 15 min)
Shows how to trace overridden rules, invalid declarations, and computed styles in the Rules and Computed panels.
- Chrome DevTools: Inspect CSS Grid (guide, Chrome for Developers, 12 min)
Demonstrates grid overlays, track line numbers, and gap badges for diagnosing misaligned grid items.
- Firefox DevTools: Examine Grid layouts (guide, Mozilla, 12 min)
Covers inspecting implicit vs explicit tracks and named grid areas directly on the page.
- Chrome DevTools: Inspect and debug CSS Flexbox (guide, Chrome for Developers, 12 min)
Shows flex overlays and alignment toggles to debug unexpected wrapping, shrinking, or spacing.
- Chrome DevTools: Find invalid, overridden, and inactive CSS (guide, Chrome for Developers, 12 min)
Explains how DevTools flags inactive properties—like align-items on a non-flex container—with actionable tooltips.
- MDN: Stacking context (reference, MDN Web Docs, 15 min)
Explains every CSS property (transform, opacity, filter) that creates a new stacking context and traps child z-index values.
- Learn CSS: Z-index and stacking contexts (guide, web.dev, 12 min)
Walks through concrete layering bugs where z-index: 9999 still loses to a sibling container.
- MDN: isolation (reference, MDN Web Docs, 8 min)
Shows how isolation: isolate intentionally creates a clean stacking boundary for self-contained components.