Just been going through Exercise 4 in the HTML and CSS section. I liked what the example did with the separate scrolling in the navbar, particularly when the media query comes into effect on a narrow screen. So I tried to copy it. but something really strange happens when i go to the narrow screen. I can’t figure out what on earth is happening. I can’t seem to make changes to ul or li items on the media query and the navbar ul now comes outside of its containing element and beneath the main section.
If anyone has a moment to spare and wants to help me figure out whats going on this would be greatly appreciated.!
Sorry I’m a bit of a noob. Hope this link takes you to the code i’ve written