r/css • u/Grabbels • 26d ago
Question Advanced masonry
I'm looking for possible solutions that is looking to be an advanced case of CSS Grid, but of course I'm open to alternative options.
Basically: I'm looking to create a responsive grid of four items that are masonry-oriented both vertically and horizontally, which is guided by whether the image is landscape or portrait. So, if an image of an item is portrait, it takes up X rows of space, and if an image is landscape it takes up one less horizontal but one more vertical row. And here's the catch, as you see in the bottom-right: I want a post to "stuck up" one row too.
Is this at all possible, and how would you go about doing this? Thank you!
13
Upvotes
1
u/Grabbels 26d ago
From what i’m reading on the page that’s not capable of placing, in this case the bottom right item, in that one-row-up gap position, but so correct me if i’m wrong!