For some reason I cannot understand why this is not working. My only difficulty: The header div is just not being a sticky.
HTML:
<div class="header">
    <div class="header-content">
        <img src="mycoollogo.svg" class="logo" />
    </div>
</div>
CSS:
.logo {
  height: 3rem;
}
.header {
  position: -webkit-sticky; /* Safari Support */
  position: sticky;
  height: 3.5rem;
  margin-top: 0rem;
  margin-left: 0rem;
  margin-right: 0rem;
  background: var(--accent-color);
  color: white;
}
.header-content {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-left: 6rem;
  margin-right: 6rem;
}
 
     
     
    