I thought I understood how to create a fixed navbar…
#navbar { position: fixed; top: 0; }
But I am not getting that result. Does anyone have time to take a look at my code and see what I’m doing wrong?
I really should be working on other elements of this page lol, but I can’t let it go.
Thank you.
lepros
September 13, 2021, 5:59pm
2
It seems to be working fine for me:
separate the nav
bar from your background
clas
s div
<div class="background">
</div>
<nav id="navbar"> </nav>
try this way, it will work , you should more concern about your html code structure when their nesting
1 Like
Thank you! That helped. I was trying to use background images the way I did in a previous project. I took out that those div
s and modified my section ids instead.
system
Closed
March 15, 2022, 6:17am
5
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.