It seems that if you assign "float: left" to a div, then it ignores a fixed Y position (e.g. "top: 100px") you might give it.
I think you need a JavaScript solution, not a CSS solution.
Here is an example of JavaScript that involves arranging divs. It is not exactly what you want, but it does use the concept of detecting divs that overlap each other:
http://www.experts-e





by: glcumminsPosted on 2008-08-21 at 14:54:14ID: 22284679
I believe you are referring to the CSS 'float' property, but it should be attached to the child divs, not to the container. For an example, please see the code below. You can modify it as needed to experiment with the float property.
Select allOpen in new window