grid-auto-columns

Sets the size of any columns that the browser creates automatically (implicit columns) when you place items outside of your explicitly defined grid columns.

It is documented as part of the CSS Grid Layout specification.

/* Usage Example */
.dynamic-grid {
  display: grid;
  /* Any columns added automatically will be exactly 100px wide */
  grid-auto-columns: 100px;
}

/* Global values */
grid-auto-columns: inherit;
grid-auto-columns: initial;
grid-auto-columns: revert;
grid-auto-columns: revert-layer;
grid-auto-columns: unset;
Widely available Since 2017 95% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2017.

57+
70+
10.1+
16+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC