Reputation: 117
I wanna order div like in the image below any one can help?
All div has specific width but they don't have Height restrict. There can be 4 div each column and next div (5th div) goes bottom of 1st div but space of top and bottom div must be same(margin:5px)
Thanks.
Upvotes: 2
Views: 111
Reputation: 6960
Nathan's suggestion is a good one - there is also Masonry, which relies on jQuery as well.
Upvotes: 1
Reputation: 66475
You can't do this in pure CSS, as it goes horizontal, as you progbably know. For a jQuery solution, check out a plugin like the Columnizer jQuery Plugin.
Upvotes: 1