html, body { height: 100%; margin: 0; background-color: #1c1c1c; color: #fff; } a { color: #fff; } #wrapper { min-height: calc(100% - 2em); display: grid; grid-template-rows: auto 1fr auto; row-gap: 1em; padding: 1em; }