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 Answers
+ 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