...

View Full Version : footer showing at the bottom of the page



esthera
07-27-2011, 05:44 PM
i want my footer to always show on the bottom of my page

but if my page is longer then the screen it shows the footer on top of the text - how can I put it so it only shows at the bottom of the screen?

what's the trick

my current code


#footer {
position: absolute;
bottom:0;
width: 100%;
height: 1.3em;
border-bottom: 1px solid black;
}
#footer p {
padding: 1px 5px 0;
}

teedoff
07-27-2011, 05:47 PM
Gonna probably need more than the bit of css you gave. A link to your live site would be best.

esthera
07-27-2011, 05:56 PM
http://www.a web foryou.com/testp/testp.htm

alykins
07-27-2011, 06:02 PM
you may want to switch to a floating layout, the positioning is pulling things out of normal flow... for anyone else viewing...
http://www.awebforyou.com/testp/testp.htm

esthera
07-27-2011, 06:04 PM
yes are probably right but I'm trying to just make changes to an existing site as easy as possible without recoding the html completely

is there any easy way to do it?

alykins
07-27-2011, 06:08 PM
i dont see one that pops up and smacks me in the face... i added postion:absolute; bottom:0; to the footer and it moved it halfway down the page. I generally do not play around with attempting to layout positioned websites, so my inherent thoughts are to float everything (well everything that needs floated) and laying it out in a more common method

esthera
07-27-2011, 06:12 PM
i added postion:absolute; bottom:0; to the footer

but this shows up at the bottom of the screen - not under the contents of the page?

alykins
07-27-2011, 06:14 PM
i added postion:absolute; bottom:0; to the footer

but this shows up at the bottom of the screen - not under the contents of the page?

yes that's what i meant, bottom of "the screen" but in the middle of ur content. my bad on phrasing

Sammy12
07-27-2011, 06:14 PM
your either talking about a sticky footer
http://ryanfait.com/resources/footer-stick-to-bottom-of-page/

or

a fixed footer
http://limpid.nl/lab/css/fixed/footer

woops sorry for the undercut, didn't look at the time :P

alykins
07-27-2011, 06:17 PM
your either talking about a sticky footer
http://ryanfait.com/resources/footer-stick-to-bottom-of-page/

or

a fixed footer
http://limpid.nl/lab/css/fixed/footer

woops sorry for the undercut, didn't look at the time :P

yes fixed works... tried it on the page...
make CSS for footer

position:fixed;
bottom:0;
*hadn't tried this prior to now*



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum