html - CSS Stacked divs -


i have divs floating left, if see attached jsfiddle see im trying do, in fiddle there yellow box, need flush bottom of green box im not sure if possible?

is it? , if how may this? in advance!

http://jsfiddle.net/k5zjc/

try this jsfiddle. techincally, float .box items right instead of left , getting self-filling columns in accordance content. so, in css add:

.box:nth-child(odd) {clear: left} .box:nth-child(even) {float: right; clear: right} 

update

apparently solution doesn't work nice if have more these specific blocks. so, probably, jquery masonry way result.


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

ASP.NET Javascript: window.open won't work twice -

jquery - Opera does not change the height of the page. Why? -