The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Footer Problems Re: Footer Problems

"cybershot" wrote:
You need to clear the floats. Like this

.clear { clear: both; }

then in your html. use it like this

<div class="clear"></div>

put that ater you float any content.

I’m gonna disagree here. Instead of throwing in a bunch of empty divs with the clear property you should do a few other things first. Then if all else fails use cybershot’s suggestion.

If you want your float to clear and nothing to float on either side of it, throw in the clear:both ON the element you’re floating. If you want something not to float to the left/right of it clear it on the appropriate side.