Simple sticky footer

<style> .wrap { min-height: calc(100vh - 89px); } footer{ height: 89px; } </style> <div class="wrap"> <div class="main-header"> <div class="container"> ... </div> </div> <div class="container"> ... </div> </div> <!-- /.wrap --> <footer> <p>I am a footer</p> </footer>
Code was found at https://teamtreehouse.com

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.