I have a set of divs. ( a set = a div with many inside divs ) how i can make them be like SET1 SET2 SET3 Align one under each other, if i set them an width , some times, in some browser they do not align to well !
If they're floated. It occurred to me that there might be some other positioning weirdness going on (like absolute positioning) since stacking on top of each other is what divs do naturally. Like MoT I assumed these were not stacking because they were floated... but if that's not the case, the clear won't do anything.
#wrap{ background:#000; width:100px; margin:0 auto; } #setone{ background:#33FFCC; width:100px; height:100px; position:absolute; top:0; } #settwo{ background:#000000; height:100px; width:100px; position:absolute; top:100px; } ================ De hTmL below : <body> <div id="wrap"> <div id="setone"></div> <div id="settwo"></div> </div> </body>