When working with CSS Grid, you’ve almost certainly fallen into a trap where you can’t specify the number of columns because the grid items are dynamic: sometimes two items, sometimes four items. In this Larabit, I’ll demonstrate how to use the auto-fit, auto-fill, and minmax() properties to address this issue.
