Tell us what’s happening:
After changing the height of my #welcome-section to 100vh, I’m now receiving the following message from the test suite:
- The navbar should always be at the top of the viewport.
What’s confusing is that I had already passed that test with the following CSS:
navbar {
position: fixed;
top: 0px;
}
But now with the welcome-section height being changed to encompass the full viewport, I’m getting the navbar error message. This actually makes sense to me because the following concepts seem to be contradictory, meaning I don’t know how they could both be true: the navbar is fixed at the top of the viewport AND the welcome-section element’s height is equal to the height of the viewport.
Any help in sorting this out would be much appreciated!
Your code so far
navbar { position: fixed; top: 0px; } @media (max-width:700px) { navbar { position: static; } } #welcome-section { height: 100vh; } Go to projects! Link to my profileWelcome to my portfolio page!
Mozilla/5.0 (X11; CrOS x86_64 10575.58.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/responsive-web-design-projects/build-a-personal-portfolio-webpage