tags:

views:

261

answers:

3
+18  A: 

You need to specify the footer to clear the float:

#footer{
 clear: both;
}

This forces it under floated elements.

Other options for clear are left and right.

Vincent Ramdhanie
Thank you! That is exactly what was needed! I tried using clear but on the floated divs rather than the footer, now it works as expected.
Wilco
A: 

Right now you're pretty hopeless if you don't want to float anything, nor use position: absolute.

The only alternatives left are:

  • use display:inline-block for the sidebar and content divs (this is not supported by all browsers yet)
  • wait for the css advanced layout module or some other column module (will take forever probably)
  • go back to using tables
facildelembrar
A: 

Doing either of these options result in the footer div not being pushed down by one or the other?

Try this tool

unigogo