13

here is my site http://iadprint.com/services

i have tried everything to get the footer to stick to the bottom but nothing wont work other than doing a set height in css on the tag #cright but i dont want to do that since dynamic content would go in there. can anyone see what im missing or doing wrong?

thanks

Exploit
  • 5,902
  • 17
  • 66
  • 97

2 Answers2

32

add to your footer css

position:absolute;
bottom:0;

If you want footer to always be at the bottom regardless of window scroll then use

position:fixed;
bottom:0;
Hussein
  • 41,814
  • 25
  • 111
  • 143
0

Have you tried using the 'sticky footer' trick in combination with Javascript (e.g. jQuery.height())? You could detect the new footer height and update the css accordingly.

See also this CSS-Tricks article.

jpyams
  • 3,455
  • 5
  • 34
  • 59
Jordan Lewis
  • 936
  • 7
  • 10
  • Actually, your link references this site - http://www.cssstickyfooter.com/ - which has more documentation on usage. – Ciaran Mar 28 '11 at 04:52
  • @Ciaran the css-tricks link is far more clear and to-the-point in my opinion – Alex Oct 22 '14 at 11:23