paulcollett / react-masonry-css

React Masonry layout component powered by CSS, dependancy free
https://paulcollett.github.io/react-masonry-css/demo/
MIT License
944 stars 66 forks source link

colSpan? #54

Closed thealjey closed 4 years ago

thealjey commented 4 years ago

I would like to have a two column masonry container with some items in it spanning both columns. Is that possible?

paulcollett commented 4 years ago

There is a workaround, please have a look at https://github.com/paulcollett/react-masonry-css/issues/40 - hope that helps!

thealjey commented 4 years ago

yeah, that's what I ended up doing, unfortunately a bit awkward code, but it works, sorta they really need to add something like "display: masonry" into the css spec because every approach that we have to masonry layouts currently has its own list of drawbacks