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

jQuery Ajax Render Fragments OR Whole Page -

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

java - Simple Command Line calculator -