I’m a starting developer and currently I’m going through the Responsive Webdesign Projects course.
My latest finished project, the Technical Documentation Page was working fine a couple of days ago. But now, even though I haven’t changed anything in between, the navbar completely disappears when I scale the window down to <950px (my @media rule).
The navbar should go to the top of the screen.
It is probably the fact that this is changing the ul elements, and not the nav:
@media screen and (max-width: 950px) {
nav ul {
So, if you move the ul elements to be absolute positioned, then the nav has no reference to size to, and becomes size 0x0. This means any element within nav told to be width: 100%;, becomes 100% of 0.