WhiteProfileSpecialist
WhiteProfileSpecialist

Reputation: 119

CSS/HTML Align divs horizontally

So i need divs to align horizontally and fill blank spaces left in previous row's like so:

http://i45.tinypic.com/eqrudv.jpg

Can this be achieved?

Upvotes: 3

Views: 591

Answers (1)

Nick H
Nick H

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

Related Questions