CSS Grid Template Columns
Multiple Choice Easy
Question
In grid-template-columns: 1fr 2fr, what does fr stand for?
Hint
fr is a flexible unit that distributes available space.
Explanation
fr stands for "fraction" — it represents a fraction of the available space in the grid container. In 1fr 2fr, the first column gets 1/3 of the space and the second gets 2/3. Unlike fixed units (px), fr adjusts dynamically when the container size changes.
Related Resources
Related Lessons
- CSS Grid
Learn CSS Grid layout.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.