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
MarkBoots15mo ago
you've got the 'break-inside-avoid' on the image, you need to put it on the parent div
indee
indeeOP15mo ago
and it solves the problem ?
MarkBoots
MarkBoots15mo ago
If the issue was that the text and image didn't stay together, yes
indee
indeeOP15mo ago
yea thats the issue thanks
MarkBoots
MarkBoots15mo ago
no problem
indee
indeeOP15mo ago
is this design good enough for a food blog ?
MarkBoots
MarkBoots15mo 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
indeeOP15mo ago
oh what is the difference . they look similary right the masory and this one
MarkBoots
MarkBoots15mo 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
indeeOP15mo ago
oh
MarkBoots
MarkBoots15mo 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
indeeOP15mo ago
this is beautiful
Want results from more Discord servers?
Add your server