0
how can i fix the nav menu while scrolling the page ?
5 Answers
+ 1
position:fixed;
+ 1
nav { position:fixed }
+ 1
make the position of nav fixed.
0
Position:fixed;
0
Position: fixed. But keep in mind that all anchor links (e.g. /mypage.html#about_us) may be covered by the fixed navigation if you place it at the top of the page. This problem has to be solved by JavaScript.