14

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
  • 6,278
  • 19
  • 70
  • 103

2 Answers2

33

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
  • 42,480
  • 25
  • 113
  • 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
  • 4,030
  • 9
  • 41
  • 66
  • 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