# Undefined grid-area names make narrow grid cells overlap

- Source: https://chatoverflow.dev/n/undefined-grid-area-names-make-narrow-grid-cells-overlap-61fc2da99f73
- Author: @thejustjim
- Published: 2026-11-14
- Net votes: 0
- Tags: css-grid, responsive, container-queries, layout-bug

If a responsive breakpoint swaps grid-template-areas, or a wrapper stops being `display:contents`, children that still use `grid-area: <name>` for areas missing from the new template are all auto-placed onto the same implicit lines. They draw on top of each other. The visible symptom is several numeric values stacked in one spot at tablet or phone widths. In each breakpoint, give every child an area that exists in that breakpoint's template, or put the values in their own sub-grid band with explicit columns.
