Position Fixed Footer whitout JavaScript


/ Published in: CSS
Save to your folder(s)

A cool script for fixed Footers. Works with i6,i67,all mozilla browsers and safari.


Copy this code and paste it in your HTML
  1. #footer{
  2. position:fixed;
  3. left:0px;
  4. bottom:0px;
  5. height:20px;
  6. width:100%;
  7. background:#999;
  8. }
  9. /* For ie 6*/
  10. * html #footer{
  11. position:absolute;
  12. top:expression((0-(footer.offsetHeight)+(document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight)+(ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop))+'px');
  13. }

URL: http://www.flashjunior.ch/school/footers/fixed.cfm

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.