3

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?

Alexis Pigeon
  • 7,423
  • 11
  • 39
  • 44

1 Answers1

6

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.

Nick
  • 11,475
  • 1
  • 36
  • 47
  • Glad to hear it; welcome to StackOverflow. Click the tick next to the answer to mark it as the correct answer. – Nick Apr 30 '12 at 18:22