Hi
I am trying to do the project “Personal Portfolio” and I am trying to make the top navigation menu sticky. I have tried:
position: fixed;
When i insert this line it breaks the code. What am i missing?
Hi
I am trying to do the project “Personal Portfolio” and I am trying to make the top navigation menu sticky. I have tried:
position: fixed;
When i insert this line it breaks the code. What am i missing?
Hi, you’re almost there.
One more thing you need is set top property to 0.
Good luck
You can give
right:0;
After inserting:
right: 0;
I am getting this white space behind the menu. I want it to be in the same container as the blue background.
Change the
margin-top
topadding-top
in your.intro
class
Rather than using padding to take it down, you can add a
height
of100vh
to your.intro
and you already have flex there, just make it to position center usingjustify-content
Thanks a lot. That worked correctly.