New course! Every coder should learn Generative AI!
Try a free lesson+ 2
Please how can i make a sticky navigation bar
2 Answers
+ 1
In HTML:-
<p class="sticky">Sticky<p>
In CSS
p.sticky {
position:sticky;
top:__px;
Hope it works.
(it's my 100th answer)
0
You can also use fixed in place of sticky.