div1(Floated Left)
------------------
<div style="clear: both;"><!--This <div> as a separator--></div>
----------------------------------
Other div renders here now
This will bring second DIV into bottom position under DIV1.
What will happen if all this DIV's are inside one DIV with relative position.
border: 0 none;
position: relative;
top: 0;
Can all float elements influence main div position which should have CLEAR BOTH?
#div2 {
clear: both;
margin: 0;
overflow: hidden;
}
or it is correct to place position: absolute; and not clear: both; to place DIV element regardless of other DIV's?
Sample:
<DIV><!--This <div> acts as a relative position-->
div1(Floated Left)
div3(Floated Right)
------------------
<div style="clear: both;"><!--This <div2> acts as a separator--></div>
</DIV>
----------------------------------
Other div renders here now
Bookmarks