Hi friends. I think I’m nearly finished with my portfolio project. For some reason one test is not passing even though it seems to pass functionally. The nav bar stays fixed at the top of the viewport both on mobile and on desktop. Why is the test not passing?
Annnnd a navbar media query question: What is a good method to make things look tidy up there in mobile? I’ve tried modifying flex to have the words evenly-spaced across the top, but nothing happens with the queries I put in. I’d also like to know how to implement the “three-line box” nav symbol. Any suggestions on that?
Finally, if you don’t mind reviewing my portfolio I appreciate any feedback you have. I’m not 100% finished yet, but I feel like I’m close.
This is the error you are getting Navbar's parent should be body and it should be at the top of the viewport : expected 17 to be close to 0 +/- 15, and by the looks of it you have header wrapped around the id="navbar" so the test will fail.
As to the failing test, the error tells you what the problem is:
The navbar should always be at the top of the viewport.
Navbar’s parent should be body and it should be at the top of the viewport : expected 16.988636016845703 to be close to 0 +/- 15 AssertionError: Navbar’s parent should be body and it should be at the top of the viewport : expected 16.988636016845703 to be close to 0 +/- 15
and this is a hamburger menu i think your on about?
You can get a hamburger from most icon sites and to to get it to work you give it a display: none: then have your nav-links disapear at 600px by giving there container a display: none; and then giving the hamburger a display: block;
you can use font awesome by adding this cdn to your head tag or the top of your codepen in your case.