.footer { background-color: #f7f7f7; } html, body { height: 100%; margin: 0; } .wrapper { height: 100%; display: flex; flex-direction: column; } .content { flex: 1; overflow: auto; }