Skip to content

Instantly share code, notes, and snippets.

@johnotu
Created May 24, 2019 12:27
Show Gist options
  • Save johnotu/545ba9166507a7a8c2b5fceba5a83bc9 to your computer and use it in GitHub Desktop.
Save johnotu/545ba9166507a7a8c2b5fceba5a83bc9 to your computer and use it in GitHub Desktop.
CSS for index.html
html {
position: relative;
min-height: 100%;
}
body {
/* Margin bottom by footer height */
margin-bottom: 60px;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
/* Set the fixed height of the footer here */
height: 60px;
line-height: 60px; /* Vertically center the text there */
color: #fff;
/* background-color: #000; */
}
body > .container {
padding: 60px 15px 0;
}
.footer > .container {
padding-right: 15px;
padding-left: 15px;
}
code {
font-size: 80%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment