Tell us what’s happening:
So I have created a media query when, after the screen shrinks past 768px, the navbar is supposed to switch from the side of the screen to the top. The issue is, I don’t intend on still having the same fixed effect on my navbar with this query, which basically means I want to be able to scroll down without having the navbar constantly on the top of my screen.I set my main-text (id = main-doc) to a relative position, set my navbar (id = navbar) with an absolute position, and my links (id = links) with an inline-block position. Yet, the navbar is still fixed on the top of my screen, and I cannot scroll past the navbar, is there something that I’m missing?
You have to move the max-width media query below the styles it is supposed to overwrite.
Also, you didn’t set any position value on the #navbar in the media query. If you just want to reset it you can use position: unset (or use whatever value you intended to use).