repeat function
repeat function specifies the same value for multiple columns in the grid.
It accepts two values
- Number of times to repeat
- The value to be repeated
Example
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
Post a Comment