CodeZettaInterview Hub

CSS · Grid · Fresh / Intern · Comparison

fr units vs % vs auto in tracks?

Short Interview Answer

fr shares free space; % is definite percentage; auto is content-based sizing.

Detailed Explanation

minmax(0, 1fr) often needed to allow shrinking below content. repeat(auto-fit, minmax()) for responsive grids.

Did you know this answer?