Position fixed not working

Position fixed not working
0

#1

Am working but on portfolio.
Am trying to make the nav bar fixed but its just not working. I have tried a lot of things but nothing seems to work. Please help me out.
this is the css for my nav:

nav{
  background:#212324;
  postion:fixed;
  width:100%;
  top:0;
  left:0;
  right:0;  
}

main{
  margin-top:-16px;
  background:red;

}

here is a link to my pen.


#2

Your wrote “postion” instead of “position”
Your nav should be

nav{
  background:#212324;
  position:fixed;
  width:100%;
  top:0;
  left:0;
  right:0;  
}

#3

I can’t believe it. This is so embarrassing. Thanks a lot.