Skip to content

Instantly share code, notes, and snippets.

@kovaldn
Last active December 5, 2023 18:52
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 24 You must be signed in to fork a gist
  • Save kovaldn/4a1668fe169b8bb6656c to your computer and use it in GitHub Desktop.
Save kovaldn/4a1668fe169b8bb6656c 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