Create an adaptive CSS grid with a max column count!

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI10 min

About this video

A CSS tutorial showing how to build a responsive grid that adds columns up to a maximum of three, using nth-child selectors. It also covers adapting the layout to small screens and simplifying the code with Sass.

What you’ll learn

  • Limit a CSS grid to a maximum number of columns using nth-child
  • Adapt a responsive grid layout for small screens
  • Simplify grid column rules with Sass