I\'d like to have the html below showing in n equal columns whether there are two, or three, or more child elements to the row element using css grid - Flexbox makes this ea
This allows the columns to distribute better, and the columns are the same size regardless of whether the size of the items does not adjust.
.row { display: grid; grid-template-columns: repeat( auto-fit, minmax(33.33%, 1fr) ); } .item { grid-column: span 1; }