.layout-container{ position: relative; width: 100vw; background-color: rgba(153, 147, 174, 0.1); header{ display: block; width: 100%; background-color: white; position: fixed; z-index: 99; width: 100vw; position: -webkit-sticky; position: sticky; top: 0; .sticky{ position: fixed; } div{ display:flex; flex-direction: row; } } }