Debug broken CSS layouts, grid tracks, and stacking contexts in DevTools

8 steps · about 1 h 38 min · Beginner

  1. 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.

  2. 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.

  3. Firefox DevTools: Examine Grid layouts (guide, Mozilla, 12 min)

    Covers inspecting implicit vs explicit tracks and named grid areas directly on the page.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. MDN: isolation (reference, MDN Web Docs, 8 min)

    Shows how isolation: isolate intentionally creates a clean stacking boundary for self-contained components.