Skip to content

Instantly share code, notes, and snippets.

@Fresh-Dev
Created February 10, 2016 19:25
Show Gist options
  • Save Fresh-Dev/04d0bf64722f1f6258aa to your computer and use it in GitHub Desktop.
Save Fresh-Dev/04d0bf64722f1f6258aa to your computer and use it in GitHub Desktop.
Fixed Footer
#footer {
position: fixed;
left: 0px;
bottom: 0px;
height: 30px;
width: 100%;
background: #444;
}
/* 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