The following will create as many 200 pixel columns as will fit into the container.
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
However, I cannot comphrehend the 1fr
part. This means 1 fraction. But, how does that go with auto-fill
?