how can I display divs with different height to be close to each other regardless of its height and with a specific margin just like buildings
I mean something like the divs in this website http://via.me
I used flaot:left but it floats only with the last div and leaves an empty spaces
this is the code that I used http://jsfiddle.net/D9rHB/6/
how can I display divs with different height to be close to each other
Share
I think that the jQuery Masonry plugin would be what you’re looking for in this instance:
JS Fiddle demo.