Home › Forums › CSS › help with positioning › Re: help with positioning
May 30, 2012 at 10:34 pm
#103690
Participant
The footer moves up because it doesn’t “see” the sidebar and content divs. Since those are positioned absolute (and indeed taken out of the flow), the main div also doesn’t take them into consideration and so the main div will have a resulting height of 0.
I don’t understand why you NOT want to float the content div and side div (and use margins and paddings). There’s nothing wrong with that method — if it’s because you want more control/flexibility over switching both DIVs, then you can just solve that by switching float:left
with float:right
and vice versa.
Also, margins and paddings are actually meant for spacing, so not sure why you insist on doing it with other ways?