Build a Personal Portfolio Webpage - nav is apparently not at top?

Build a Personal Portfolio Webpage - nav is apparently not at top?
0

#1

Tell us what’s happening:
Hi guys,

I’m trying to finish this project but I’m stumped on the final two user stories. I’m asking to ensure the nav bar is always at the top, which it appears to be?
And to make the welcome section equal to the viewheight which I have done (I think?)
Any and all help is appreciated.

Alex.

Your code so far

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

Hrm, it’s the test suite that is erroring out on that step, that uncaught exception isn’t normal. See if you can fix the viewport error first.


#3

I’m trying my best, I’m completely stumped. Been here over an hour trying to figure it out :(. The project is effectively done, is it not? I’ve added a note to my fork, doubt I’ll figure this one alone.


#4

No. You have padding on the welcome section. If you remove it you will pass that test. Then yes, I’d call it done.


#5

Lol whoops! However, the navbar is still not passing? :s It’s really bugging me aha.


#6

There seems to be a issue with the testing suite. That is not a normal error. I’d suggest clicking on report a bug under tests. Follow the template and log the issue on github so it will get looked at.


#7

Aw :frowning: thank you for your help!!


#8

Add top:0; to ur Nav ul css i think that should do it

Edit: nvm lol sorry


#9

The test requires your navbar to be at the top of the viewport,

And, your navbar starts from <nav>, therefore you should apply the properties of position: fixed and more to the <nav> which contains an id=“navbar”

Copy all the properties from ul and apply it on <nav> and use flexbox properties on ul to make it align on the right.

Note: I did try the above said info on your pen and it passed 12/12