Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not get CSS Sticky footer to work. What am I doing wrong?

Tags:

css

footer

sticky

Well, this is my first post here and really enjoying the site.

I have a very basic (ugly as sin) site I have started and for some reason, I can not get the CSS Sticky footer to work for FireFox. IE works but FF shows it halfway up the page.

The URL is http://dev.aipoker.co.uk

I know I should be developing in FF and bug fixing in IE so I am guessing I might have actually made a mistake and somehow it works in IE but nowhere else.

Can anyone help put me out of my misery please?

Thanks, guys and gals.

like image 661
Jon Avatar asked Jan 25 '23 02:01

Jon


2 Answers

I've had success with code like this:

footer { 
  display: block; 
  position: absolute; 
  width: 100%; 
  bottom: 0px; 
}
like image 133
zigdon Avatar answered Jan 27 '23 13:01

zigdon


Try this one, it works well on Firefox.

BTW, you should listen to Boagworld's podcast if you don't already. It's brilliant! :)

Cheers.

like image 27
dguaraglia Avatar answered Jan 27 '23 13:01

dguaraglia