Skip to content

Instantly share code, notes, and snippets.

@vibecode
Forked from kovaldn/main.css
Created August 22, 2016 15:40
Show Gist options
  • Save vibecode/4050833aa76faa2140f8be842ab719ad to your computer and use it in GitHub Desktop.
Save vibecode/4050833aa76faa2140f8be842ab719ad to your computer and use it in GitHub Desktop.
CSS: footer
<div class="wrapper">
<div class="main-content">
</div>
</div>
<footer class="page-footer">
</footer>
/* прибьём футер к низу*/
.wrapper{
position:relative;
min-height:100%;
height:auto!important;
overflow:hidden;
}
.wrapper:after {
content: "";
height: 80px;
display: block;
}
.page-footer{
height: 80px;
margin-top: -80px;
}
/* прибьём футер к низу - конец*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment