* { box-sizing: border-box; } html { background-image: linear-gradient(to top, #1e0f1d, #061f2b); background-repeat: no-repeat; background-attachment: fixed; width: 100%; height: 100%; } body { font-family: monospace; } ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; border: 1px #d945d1 solid; } li { float: left; } li a { display: block; color: white; text-align: center; padding: 14px 16px; text-decoration: none; } li a:hover { background-color: #111; } .container { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto auto; grid-auto-rows: 1fr; gap: 5px; grid-auto-flow: row; grid-template-areas: "header header header" "content content content" "footer footer footer"; margin-left: 20%; margin-right: 20%; } .header { grid-area: header; } .content { grid-area: content; color: #fff; padding: 5px; margin-left: 10%; margin-right: 10%; } .footer { grid-area: footer; }