CSS-Masonry
Very simple css-only masonry layout using css3's column-count
and column-gap
. Doesn't rely on fixed heights, intended to work with Meteor/Blaze without having to bind up rendered handlers to tie in isotope (and all the management/cleanup that comes with that whole mess).
Responsive and increases column-count at Bootstrap breakpoint dimensions, though will work just fine without Bootstrap.
I use this layout in a lot of projects so this is basically just a starting-point and something to refer to, override with your desired margins/column-counts as needed. Check the source, it's not fancy.
CSS columns are pretty well supported: http://caniuse.com/#feat=multicolumn
Usage
or to be a bit more bootstrappy...
Cap column-count
Added in 1.0.0... cap the number of columns (i.e. don't use 4 columns at max-res) by applying to .masonry-wall
class of masonry-cap-1
, masonry-cap-2
or masonry-cap-3
.
Thanks
Based entirely on http://w3bits.com/css-masonry/
Feedback
Any feedback and PRs welcome