Grid-based hierarchy for multi-line elements

I'm wondering if it's possible to achieve a responsive hierarchical layout like this with CSS and/or JS. I have a grid-based layout that has "cards" that belong to the same parent groups. I'd like to style them so they group together and look decent on a responsive screen. I'd imagine there are JS libraries for handling this but I don't know where to start looking. Thank you in advance! (If it's helpful, I'll probably be creating this in Svelte)
No description
3 Replies
sillyrabbit
sillyrabbitOP2mo ago
bumping this in hopes someone has a solution!
capt_uhu
capt_uhu2mo ago
this doesn't seem on the surface that it would be that tricky but i'm wondering what is going to go in the white boxes? Will they always be 1/1 aspect like that?
Lamer of Sweden
Lamer of Sweden2mo ago
Yep, looks like a straight forward grid-template-columns solution. Did something like this. https://codepen.io/peter-warholm/pen/LYwrggZ
Want results from more Discord servers?
Add your server