problem with a masonry layout . help needed pls

https://play.tailwindcss.com/YtqxLRO4qL why this is acting wierd pls help
Tailwind Play
Tailwind Play
An advanced online playground for Tailwind CSS that lets you use all of Tailwind's build-time features directly in the browser.
12 Replies
MarkBoots
MarkBoots14mo ago
you've got the 'break-inside-avoid' on the image, you need to put it on the parent div
indee
indeeOP14mo ago
and it solves the problem ?
MarkBoots
MarkBoots14mo ago
If the issue was that the text and image didn't stay together, yes
indee
indeeOP14mo ago
yea thats the issue thanks
MarkBoots
MarkBoots14mo ago
no problem
indee
indeeOP14mo ago
is this design good enough for a food blog ?
MarkBoots
MarkBoots14mo ago
yea, it's okay. Btw, this isn't really masonry, but css multicolumn layout. For now that's the only css-option that comes close. I think they currently are working on an option in CSS Grid to create masonry layouts
indee
indeeOP14mo ago
oh what is the difference . they look similary right the masory and this one
MarkBoots
MarkBoots14mo ago
the order is different, in masonry the content goes from left to right and fills available space in height. the multi columns fill the columns first and don't adjust to the available height
indee
indeeOP14mo ago
oh
MarkBoots
MarkBoots14mo ago
Chris Coyier
CSS-Tricks
Approaches for a CSS Masonry Layout | CSS-Tricks
Masonry layout, on the web, is when items of an uneven size are laid out such that there aren't uneven gaps. I would guess the term was coined (or at least
indee
indeeOP14mo ago
this is beautiful
Want results from more Discord servers?
Add your server