I am trying to replicate the .col class of bootstrap 4 in CSS Grid. i.e. make columns span evenly across 12 column row
I have used created a 12 column grid in the row class and used grid-column: span 12 as an example for the col-sm-12 class.
I would appreciate any help.
.row {
display: grid;
grid-template-columns: repeat(12, 1fr ) ;
grid-gap: 20px;
}
.col {
grid-column: span auto;
}