1
2
3
4
5
6
7
8
9
10
11
12
autofit
function.grid-template: repeat(2,150px) / repeat(auto-fit,200px)
.13
14
15
16
17
18
19
20
21
22
23
24
minmax()
function.repeat(2,150px) / repeat(auto-fit,minmax(200px,1fr))
.minmax()
indicate create as many as possible columns with a
min-width of 200px and a max-width of 1fr. So if a column is less than 200px delete one column but if a
column is more than 200px so take 1fr so take 1 space available in the container.