Equal columns with minmax(0, 1fr)
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;Two shrinkable fractional columns, the same pattern as the tutorial card grid.
- A declaration of repeat(2, 1fr) would be two minmax(auto, 1fr) tracks, whose auto minimum can resist shrinking.
<div class="cards">
<article class="card">Short text</article>
<article class="card">docs/garden/week-01/planting-notes</article>
</div>
<style>
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { min-width: 0; overflow-wrap: anywhere; }
</style>What this markup means
Each column can shrink to 0 and then share leftover space as 1fr. The card also sets min-width: 0 so the grid item itself can shrink. The long path is documentation text, not a file read. This matches the tutorial’s minmax(0, 1fr) choice rather than a bare 1fr.
Related: CSS tutorial: layout, CSS tutorial: responsive, Flexbox