The number and widths of columns in a grid layout are specified by the
grid-template-columns
property.
Each value in the values list, which is separated by spaces, indicates the
size of the corresponding column.
For example, the below code will generate 4 columns of 100px each.
auto:
We can use auto
, if we want the container's size to define the size of the
columns.