Skip to content

Instantly share code, notes, and snippets.

@spektraldevelopment
Created June 25, 2014 20:33
Show Gist options
  • Save spektraldevelopment/97c89d510cda391df681 to your computer and use it in GitHub Desktop.
Save spektraldevelopment/97c89d510cda391df681 to your computer and use it in GitHub Desktop.
HTML/CSS: Fixed Footer
body {
padding: 0;
margin: 0;
}
#footer {
position:fixed;
padding:0;
margin:0;
left:0px;
bottom:0px;
height:50px;
width:100%;
background:#999;
}
.nav-button {
display: inline-block;
padding:0;
margin: 0;
width: 49.7%;
height: 50px;
}
<body>
<div id='footer'>
<button type='button' class='nav-button'>Button One</button>
<button type='button' class='nav-button'>Button Two</button>
</div>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment