Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Is there a smarter way to do this? - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
2y ago
•
2 replies
lko
Is there a smarter way to do this?
Is there a smarter way to do this
?
https://codepen.io/Lko3001/pen/zYXRqjo
I want the items inside of
.item
.item
to wrap when there
's not enough space
, and I want the button to grow when it
's wrapped
.
And also
, is there a way to make them all wrap if one does
? I think subgrid might help but i
'm not sure how to make them wrap
I
'm trying to achieve everything without media queries if possible
CodePen
Lko
zYXRqjo
.
.
.
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
Is there another way to do this?
KP-C
Kevin Powell - Community / front-end
3y ago
Is there a way to build this layout with FlexBox?
KP-C
Kevin Powell - Community / front-end
3y ago
Is there a better way of positioning this graphic 🤔
KP-C
Kevin Powell - Community / front-end
3y ago