Skip to content

Instantly share code, notes, and snippets.

@brianbroken
Last active December 16, 2015 17:30
Show Gist options
  • Save brianbroken/5471308 to your computer and use it in GitHub Desktop.
Save brianbroken/5471308 to your computer and use it in GitHub Desktop.
CSS: Fixed Footer
#footer {
position:fixed;
left:0px;
bottom:0px;
height:30px;
width:100%;
background:#999;
}
/* IE 6 */
* html #footer {
position:absolute;
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');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment