Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Old 10-23-2008, 12:16 AM   #1 (permalink)
Junior Member
 
Alpha_Plus's Avatar
 
Join Date: Jun 2008
Location: Australia
Posts: 9
Default Footer isn't acting as footer?!

Hi,

I've got a footer on my page that should be at the bottom of the page, but instead it sits just under the bottom of the navigation bar, which is fine when there is little text on the page, but if there is an overflow of text, the footer just sits on top of it or below it - depending on 'position'.

This is my CSS code for the footer:

#footer {
color: #fff;
text-align: center;
width: 800px;
display: block;
padding-top: 3px;
height: 45px;
background: url(../../images/footer.png) repeat-x;
float: right;
position: relative;
border-top: 2px solid #000;
font: 14px "Helvetica Neue";
}

I've also posted a screenshot I'm hosting on my other site, as this isn't live at the moment. It won't be there forever.



Any ideas on how to get it at the bottom of the page?
__________________
MacBook Pro 2.4GHz
http://www.snowgumslodge.com.au/
Alpha_Plus is offline   Reply With Quote
Sponsored Links
Old 10-23-2008, 07:40 PM   #2 (permalink)
Junior Member
 
fnacotton's Avatar
 
Join Date: Sep 2008
Location: USA
Posts: 59
Default Re: Footer isn't acting as footer?!

If your side navigation is floated, it is removed from the normal flow of the document. In order to make sure your footer is below all floated content, add

Code:
clear: both;
to your footer style.

Look at this link, it's for a sticky footer, which puts the footer at the bottom of the page always, and allows for it to be pushed down if there is scrolling. footer at bottom of page.
__________________
FNA Cotton, fna
CSS help | cool t-shirts | portfolio
fnacotton is offline   Reply With Quote
Old 10-23-2008, 09:47 PM   #3 (permalink)
Junior Member
 
Alpha_Plus's Avatar
 
Join Date: Jun 2008
Location: Australia
Posts: 9
Default Re: Footer isn't acting as footer?!

clear: both; doesn't work.

The side navigation is floated to the left but the text on the right isn't floated at all. Could that be why "clear: both;" doesn't work?

That link doesn't work much either - it stuffs up everything.
__________________
MacBook Pro 2.4GHz
http://www.snowgumslodge.com.au/
Alpha_Plus is offline   Reply With Quote
Old 10-23-2008, 11:00 PM   #4 (permalink)
Junior Member
 
fnacotton's Avatar
 
Join Date: Sep 2008
Location: USA
Posts: 59
Default Re: Footer isn't acting as footer?!

Why are you floating your footer?
__________________
FNA Cotton, fna
CSS help | cool t-shirts | portfolio
fnacotton is offline   Reply With Quote
Old 10-24-2008, 07:25 AM   #5 (permalink)
Junior Member
 
pathfinder_05's Avatar
 
Join Date: Sep 2008
Posts: 18
Default Re: Footer isn't acting as footer?!

I had an issue similar... I forgot to put a 'div' ending to the 'body' or 'main' in my html ..... so it didn't know where the start of the footer was! Duh!

DB
pathfinder_05 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 12:56 PM.


Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums