<div> <header class="header"> ... </header> <main> ... </main></div>
.header { /* Stick to the top */ position: sticky; top: 0; }