Skip to content

Instantly share code, notes, and snippets.

@FMCorz
Last active August 29, 2015 14:25
Show Gist options
  • Save FMCorz/add9d2d1c604144ef81b to your computer and use it in GitHub Desktop.
Save FMCorz/add9d2d1c604144ef81b to your computer and use it in GitHub Desktop.
Sticky footer for Moodle with Bootstrap 2
body,
html {
height: 100%;
padding-top: 0; /* Revert default padding for navbar */
}
.wrapper {
min-height: 100%;
margin-bottom: -150px; /* Negative footer minimum height */
}
.wrapper::after {
content: "";
display: block;
min-height: 150px; /* Footer minimum height */
}
#page-footer {
box-sizing: border-box;
margin: 0;
min-height: 150px; /* Footer minimum height */
}
#page {
padding-top: 60px; /* Bootstrap Navbar height */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment