mtarslan
mtarslan

Reputation: 117

Create Div with Absolute

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)

enter image description here

Thanks.

Upvotes: 2

Views: 111

Answers (3)

powtac
powtac

Reputation: 41080

Check out https://stackexchange.com/sites it uses Isotope!

Upvotes: 1

chipcullen
chipcullen

Reputation: 6960

Nathan's suggestion is a good one - there is also Masonry, which relies on jQuery as well.

Upvotes: 1

nanobar
nanobar

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

Related Questions