CSS grid grow columns if rest are empty

so I had this previously done with flex but now I moved to grid in case I need to overflow to another row.
grid-template-columns: repeat(20, auto);
display: grid;
grid-template-columns: repeat(20, auto);
display: grid;
this however doesn't "flex" when the rest of the columns are empty
3 Replies
MartynasXS
MartynasXS16mo ago
MartynasXS
MartynasXS16mo ago
Is it possible to achieve this result with grid? Or do i need to add some js
Myndi
Myndi16mo ago
You mean stretch? You can do auto-fill.