CSS question: How can I get my floated sidebar to stop overlapping my footer? I'm using clear:both!
Take a look at this page.
The structure of the HTML is pretty simple:
There are three main divs - #mainheader, #maincolumn, and #footer. #Maincolumn contains another centered div - #container - which includes a div called #content, and a left-floated div called #sidebar.
After I close #maincolumn, I include a ".clear" div to clear all the floated content, and then there's the #footer.
So here's the structure:
- #mainheader
- #maincolumn
- #container
- #content
- #sidebar
- .clear
- #footer
My problem is that when the text in #sidebar is longer than the stuff in #content, it overlaps the footer.
Isn't clearing all floats supposed to clear all floats? What's happening here? Thanks in advance for your help!
posted by rhizome at 1:46 PM on October 27