CSS · Properties — CSS Grid Layout

grid-auto-columns

The CSS grid-auto-columns property. Initial value: auto. Not inherited.

Syntax
grid-auto-columns: <track-size>+

Example

Try it

Notes

Media: visual. Applies to: gridContainers. Computed value: percentageAsSpecifiedOrAbsoluteLength.

More in this group

grid-area grid-auto-flow grid-auto-rows grid-column-end grid-column-start grid-row-end grid-row-start grid-template

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.

Open the course