CSS · Layout
grid-template-columns
Defines the column track list. repeat(auto-fit, minmax(12rem, 1fr)) is a responsive default.
Syntax
grid-template-columns: repeat(3, 1fr)Example
Try it
More in this group
Learn this in the course
Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.