html, body { height: 100%; } body { display: grid; background: #212121; grid-template-rows: 1fr auto 1fr; } body > h1 { font-family: sans-serif; font-size: 4em; width: 100%; padding: 40px; text-align: center; color: #4AE1FF; background: rgba(255,255,255,.01); grid-row-start: 2; }