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
MartynasXSOP2y ago
MartynasXS
MartynasXSOP2y ago
Is it possible to achieve this result with grid? Or do i need to add some js
Myndi
Myndi2y ago
You mean stretch? You can do auto-fill.
Want results from more Discord servers?
Add your server