hi! can someone help me out with my navbar? it doest move along when i scroll down.
here’s my code
thanks a lot!
hi! can someone help me out with my navbar? it doest move along when i scroll down.
here’s my code
thanks a lot!
Hello,
The reason why you navbar is not behaving like you expect it is because you are setting the margin top on the ul element to -194px just remove it to make the navbar stick properly.
However I want to point out that this implmentation of a sticky navbar can be handled with the sticky value of the position property without any need for JS code.