Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
CSS grid grow columns if rest are empty - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
4y ago
•
5 replies
Martynas × S
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
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Spanning columns using CSS Grid
KP-C
Kevin Powell - Community / front-end
4y ago
Centering columns in CSS Grid
KP-C
Kevin Powell - Community / front-end
4y ago
css grid empty white space
KP-C
Kevin Powell - Community / front-end
2y ago
CSS Grid footer columns layout wrapping
KP-C
Kevin Powell - Community / front-end
2y ago