Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Shorthand way to achieve this grid? - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
4y ago
•
4 replies
Nizzyy 🚀
Shorthand way to achieve this grid?
Hello
I
'm trying to make a grid that alternates in items per row between 4 and 5 items
.
Is there a shorter way to do this without having to name each area
?
This is what I have so far
:
https://jsfiddle.net/bnamep5w/
I
've also attached the effect I
'm going for
Thanks
!
Edit fiddle - JSFiddle - Code Playground
Test your JavaScript
, CSS
, HTML or CoffeeScript online with JSFiddle code editor
.
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
Best way to achieve this layout with Grid
KP-C
Kevin Powell - Community / front-end
3y ago
How to achieve this grid style
KP-C
Kevin Powell - Community / front-end
2y ago
Is there a neat way to achieve this interactive grid setup?
KP-C
Kevin Powell - Community / front-end
2y ago
Best way to achieve this design?
KP-C
Kevin Powell - Community / front-end
3y ago