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