I dont know what it is youre trying to do but heres my 5 cents worth:
Normal document flow will stack divs one on top of another.
Once you float a div, it is taken out of normal document flow.
but because youre trying to float div2 to the right of div1 its just sitting underneath it because there is no space because main has a width of 200px and so do both divs. Then you are removing it by
I hope you understand this ok.
to float the two divs side by side :
Code: Select all