Equal width columns in CSS Grid
TL;DR grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; The common answer of repeat(3, 1fr) is not quite correct. This is because 1fr is about the distribution of available(!) space. This breaks as soon as the content becomes bigger than the track size. By default, it does not overflow and adjust the column width accordingly. That’s why not … Read more