Skip to content
Astera Technology

Stop a long token inflating a fractional grid track

Keep an 80px label and a 170px content track inside a 260px grid.

Measured tracks are 80px and 170px, separated by 10px.

Download complete case notes and answer keys ↓

Inspect the working example

The second track uses minmax(0,1fr). Both paragraphs permit wrapping anywhere, retaining the long filename instead of clipping it.

Inputs and native observations
CaseInput or inspectionResult and meaning
Label trackRead first track width80px
Content track260−80−10170px
TokenInspect retained text and overflowFull text wraps within its track
Download editable CSV ↓

Follow the browser mechanism

A bare 1fr track has an automatic minimum that can be influenced by intrinsic content. minmax(0,1fr) supplies an explicit zero minimum; wrapping handles the text itself. This lesson measures track sizing, not an invoice association or a stock layout choice.

A bare fractional track can inherit a large minimum

The alternative restores 1fr and disables emergency wrapping.

Counterexample source; inspect separately
<style>body{margin:8px}</style>
<style>.grid{display:grid;width:260px;grid-template-columns:80px 1fr;gap:10px}.grid p{margin:0;overflow-wrap:normal}</style><section class="grid"><p>Filename</p><p>very_long_workshop_source_file_without_spaces.html</p></section>

The unbroken filename expands the second track beyond its intended share and overflows the 260px grid.

Try the repair

Does a zero track minimum by itself guarantee that an unbroken string is readable inside the smaller track?

Show the worked answer

No. It permits the track to shrink; the text still needs an appropriate wrapping or other explicit presentation rule.

  • Read computed track widths and measure the actual children.
  • Check both sizing and retained text.

Original example files

Related resources