CSS Property:
grid-auto-columns:

Result:
1
2
3
4
5
6
CSS Code:

#myDIV {
  display: grid;
  grid-auto-columns: auto;
}
    
  
Click the property values above to see the result
W3Schools.com - Play it