Created
May 24, 2019 12:27
-
-
Save johnotu/545ba9166507a7a8c2b5fceba5a83bc9 to your computer and use it in GitHub Desktop.
CSS for index.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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