On this website the main navegation menu bar needs to be fixed on the top of the screen when scrolling. And it does.
But after reviewing the website my client is complaining that on the first scroll the bar sort of stays in the middle of the screen and only on the 2dn scroll it goes to the top.
Any way to fixing this ?
On this screen menu bar can be seen below the logo and above the slider
On the 1st scroll the slider comes up and the menu bar changes its background to black but stays where it was. This is what my client is complaining about
You will see that I added top:0; to the rules. That will place it to the top of the viewport on the first scroll.
The problem is that without top:0; the nav bar was positioned at the last point it was in the page flow, where it was located when it was position:static
The second scroll you mentioned took it to the top of the viewport and then it stayed there.