I'm in the process of developing a website and have implemented a sticky navbar using CSS. However, I've noticed that when I scroll down, the navbar appears to be "stuck" slightly further down the page (as shown in the second image). Can anyone provide assistance with this issue?
Below is the code snippet I utilized to create the sticky navbar.
.header-wrapper {
width: 100%;
height: 80px;
position: fixed;
z-index: 10;
}
.content {
width: 90%;
position: absolute;
left: 20px;
width: 1040;
}