.wrapper { display: flex; flex-direction: column; height: 100vh; } .main { height: 100%; overflow-y: scroll; padding: 2rem 0; } .footer-wrapper { margin-top: auto; }