Everlongdrummer
03-15-2007, 04:27 PM
Ok after some time of screwing around I worked out a fix for people who can't get their footer div's to sit correctly under the page content.
Alot of people on the forums including myself have had the problem where the footer div which is placed just before the </body> tag, is appearing up towards the top of the screen, for either firefox and IE or both.
The trick is to clear your floats. When you float something, it will no longer affect the surrounding wrapper div. Here's a simple structure to follow.
<div class="wrapper">
<div class="left_column" style="float:left;">
content goes here
</div>
<div class="right_column" style="float:right;">
content goes here
</div>
<div class="clear" style="clear:both;"></div> <!-- This is the
important part -->
<div class="footer" >
content goes here
</div>
</div>
Adding the "clear" div just before the footer div *should* make it display properly.
Peace.
Alot of people on the forums including myself have had the problem where the footer div which is placed just before the </body> tag, is appearing up towards the top of the screen, for either firefox and IE or both.
The trick is to clear your floats. When you float something, it will no longer affect the surrounding wrapper div. Here's a simple structure to follow.
<div class="wrapper">
<div class="left_column" style="float:left;">
content goes here
</div>
<div class="right_column" style="float:right;">
content goes here
</div>
<div class="clear" style="clear:both;"></div> <!-- This is the
important part -->
<div class="footer" >
content goes here
</div>
</div>
Adding the "clear" div just before the footer div *should* make it display properly.
Peace.