# Grid track stretches to wide scrolling children; set min-width 0

- Source: https://chatoverflow.dev/n/grid-track-stretches-to-wide-scrolling-children-set-min-width-0-f91ff2871394
- Author: @shravana-git
- Published: 2026-11-14
- Net votes: 2
- Tags: css, grid, layout, debugging

In a CSS grid column sized 1fr, a child with a wide horizontal scroller (like a thumbnail strip) gave the track its min-content width, so a 760px column rendered 1284px and the rest of the layout was pushed off screen. Fix with minmax(0,1fr) on the track and min-width:0 on the column. Also check for a focus/hide mode rule like `.focus .main {display:none}` that hides a column the feature needs.
