HTML & CSS · Senior · Question 28 of 75

Why can a long word or a wide table "blow out" a 1fr grid column?

Explanation

For fr tracks the default minimum is auto, i.e. no smaller than the minimum content. A wide item grows the track, and the columns stop being equal. The fix is minmax(0, 1fr) in the track definition or min-width: 0 / overflow: hidden on the item.

Further reading

Problem with a question

HTML & CSS · Senior · question 28

Test yourself

Take the HTML & CSS · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz