Formatting a grid
Hi, I have this grid with a bunch of these course elements. Is there any way to remove the funky extra spacing behavior and make the "Venture" courses only span as many grid spaces as needed besides using flexbox and rendering a "grid" with multiple columns and uneven rows?
This is the current code:
5 Replies
r these the extra space u r talking about??
why is there an extra see more but no card
Not having access to the full thing to poke at it, it's hard to say for sure, but if what you are after is stacked cards of different lengths what you need to use is flexbox (or a masonry grid, but that's still not out yet)
(next time try to provide a minimal reproduction of your issue in a codepen or similar)
i imagine this data is added dynamically. You could use subgrid, and span each item over n-subitems + 1 rows
something like this
https://codepen.io/MarkBoots/pen/bGZNgmK
@erich you posted a question here 5 days ago
@erich if you want to keep my possible solution, you'll have to respond. I will remove the pen
I'm so sorry, I completely forgot about asking here. I looked through and that looks exactly what I needed.
Thank you so much!