<body> <section> This is content of the page </section> <footer> Text of footer </footer> </body> section { min-height: 100vh; /* minus the height of the footer */ }