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)
3 Replies
bumping this in hopes someone has a solution!
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?
Yep, looks like a straight forward grid-template-columns solution. Did something like this. https://codepen.io/peter-warholm/pen/LYwrggZ