I have some (unknown height) elements that adjust themselves horizontally with float: left;, but if one of those elements is taller, there is a space over the one in the next row. I’d like to move that element to the empty space over it. Here’s a picture of the problem: 
Is it possible to do this without JavaScript? Either way, how can I do this?
I have some (unknown height) elements that adjust themselves horizontally with float: left; ,
Share
Just use javascript! jquery masonry was made for this!
http://masonry.desandro.com/