header { display: flex; margin: auto; align-items: center; justify-content: center; h1 { margin: 1em auto; font-size: 3em; text-align: center; } }