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
MartynasXSOP3y ago
MartynasXS
MartynasXSOP3y ago
Is it possible to achieve this result with grid? Or do i need to add some js
Myndi
Myndi3y ago
You mean stretch? You can do auto-fill.

Did you find this page helpful?