Personal Portfolio Nav Issues

Personal Portfolio Nav Issues
0

#1

Tell us what’s happening:
I need some help. I’ve pretty much got my personal portfolio web-page completed. I’ve ran through my test but keep getting an error on requirement #12.

“3. The navbar should always be at the top of the viewport. Script error. (:0)
Error: Script error. (:0)
at uncaughtException.i.onerror (https://cdnjs.cloudflare.com/ajax/libs/mocha/5.2.0/mocha.min.js:1:865)”

I cannot figure out what I’m doing wrong.

Any suggestions?

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/responsive-web-design-projects/build-a-personal-portfolio-webpage


#2

I’m not sure why it is getting script errors, but if you add

nav {
  position: fixed;
}

to your css it will pass.


#3

yea, it looks like you did it right - the test must be looking for something else, might be a bug or something - I got it to work by targeting the #navbar and using the fixed position


#4

Thanks guys!

just adding the
nav {
position: fixed;
}

fixed it. I guess this one got really particular.


#5

Yeah, sometimes the test might be looking for something very particular but there might be more than way to do it. With luck, we’ll improve the tests with time.