CSS: Making footer stay at the bottom

I can't believe I didn;t think of this, but try :

position:absolute;
bottom:10px;

That should place the footer 10 pixels from the bottom of the page.

Code:
<html>
  <head>
    <style>
      #footer {
        position : absolute;
        bottom : 10px;
      }
    </style>
  </head>

  <body>
    <div id='footer'>Your footer is here</div>
  </body>
</html>
 
Originally posted by fusion260
It's just not as cross-browser/platform as they claim it is.
Like the author of a network book I read said. "Since JavaScript isn't standardized, it's mutating faster than a fruit fly caught in an X-ray machine". :D
 
Originally posted by Geffy
try height: 100pc, I dunno why but the text-indent wouldnt take 15% but seemed to do fine with 15pc
but then for all I know they could be different measurments, but I cant be arsed to go look
No, pc is picas.
 
Originally posted by j79zlr
I can't believe I didn;t think of this, but try :

position:absolute;
bottom:10px;

That should place the footer 10 pixels from the bottom of the page.
That only works if the page is smaller than the screen. If you scroll, the footer will follow the page up.
 
I thought the page was smaller than one screen height?
 
Originally posted by Zedric
Like the author of a network book I read said. "Since JavaScript isn't standardized, it's mutating faster than a fruit fly caught in an X-ray machine". :D

I agree
 
Originally posted by j79zlr
I thought the page was smaller than one screen height?
It's very dynamic so you can't tell on before hand. Sometimes it's smaller, sometimes it's bigger.

It now turns out that the "position: static" doesn't work at all in Netscape 6. POS browsers! :mad:
 
Have a table add a bit of padding at the bottom then, and place the footer there... doesn't necessarily have to be at the bottom, eh? ;>
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back