Reputation: 119
So i need divs to align horizontally and fill blank spaces left in previous row's like so:
Can this be achieved?
Upvotes: 3
Views: 591
Reputation: 11535
There's no way of doing this automatically with pure CSS, but Javascript can help you. There is a good library called Masonry which does exactly what you want.
Upvotes: 6