This site runs best with JavaScript enabled.

Infinite CSS column grid

Kevin Beck

November 07, 2021


You can create an infinite column grid just by using:

.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

Mmmm very nice.

Source