Grid auto-fit, but with even number of columns only

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

ShortIntermediateUI2 min

About this video

A short CSS Grid tip showing how adding extra grid tracks alongside auto-fit can enforce an even number of columns in a layout.

What you’ll learn

  • Use auto-fit with extra grid tracks to control column count