I load dynamic number of divs ( variable height ) into parent div. I'd need to load them as follows:
----parent div ------ -div1- -div5- -div2- -div6- -div3- -div7- -div4- -div8- ---------------------
When I use float:left they stack up the way i don't want:
-div1- -div2- -div3- -div4- -div5- -div6-
Any ideas? Can I use js to detect overflowing div?