css grid item not fit content code example
Example: grid repeating auto columns
/* To achieve wrapping, we can use the auto-fit or auto-fill keywords. */
grid-template-columns: repeat( auto-fit, minmax(250px, 1fr) );
/* To achieve wrapping, we can use the auto-fit or auto-fill keywords. */
grid-template-columns: repeat( auto-fit, minmax(250px, 1fr) );