i am a beginner and i am trying to get the centered navigation drop down menu to work.
It took me nearly a week to get the thing centered and a toggle button implemented to open en close the content div.
Now somehow the sub-navigation opens not under the main navigation anymore but somewhere left.
Also I don’t get the main navigation center lined with the only graphic button in the Navigation bar.
Hey, I just checked your CodePen and this should fix your problem:
Add _position: relative;_ to _.navigation ul li_. Then it will position your dropdown menu from its parent li, not from the whole page.
I did not want to provide you complete code, just to guide you to fix it by yourself with little help (you will learn it better then). But make sure to ask again, if you will not understand.