How to create a fixed nav bar and it would cover the top screen. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

How to create a fixed nav bar and it would cover the top screen.

I did make a fixed navbar but it doesn't cover the entire screen I have added top:0; and width:100%;, but a portion of the screen is still not covered, I'm not sure why, I thought it was because of margins, but removing them didn't fix this issue. I fixed nvm. https://code.sololearn.com/W8Yg3g4vuG0e/#css

11th May 2020, 1:46 AM
Danial Azadpour
Danial Azadpour - avatar
4 Respostas
+ 2
Just add this to your h1 . left:0%; and CalviÕ² code too
11th May 2020, 2:34 AM
Ayush Kumar
Ayush Kumar - avatar
+ 1
Danial Azadpour can you please attach your source code here?
11th May 2020, 2:18 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
Try body { margin: 0; }
11th May 2020, 2:28 AM
CalviÕ²
CalviÕ² - avatar
0
šŸ‡®šŸ‡³ AYUSH.ks šŸ‡®šŸ‡³ yeah I did that.
11th May 2020, 2:34 AM
Danial Azadpour
Danial Azadpour - avatar