It looks like you are trying to use javascript to toggle the menu. But there is no javascript in that pen.
Are you specifically looking for a javascript solution, if so this can be moved to that forum.
Also your toggle button isn’t currently visible with no content.
Hi sorry please check the pen again everything should be visible at this point .
Are you specifically looking for a javascript solution, if so this can be moved to that forum.
No it doesn’t have to be a js solution and I’m not sure this is a javascript problem as the .js is working.But I would need help to organize the toggle menu with css when the toggle menu is open but i’m not sure how I will fix it …
Well if you click the toggle button at this point it will be totally messed up.
The overall goal is that the links should be displayed under the first row when toggle button is pressed.
“The Brand” should be in Center of the top row next to toggle
The user icon should go to the right in the top row and will later (when I can get this to work) function as a 2nd toggle menu for login, logout and register
To put the menu below the other content you will need to enable wrapping on the flex parent .nav-wraper { flex-wrap:wrap }
This will allow a new row to be used.
To force the menu onto the new row of its own increase its width using flex basis. .navbar__ToggleShow { flex-basis: 100% }
that is great thanks . you sure are a genius with this. Could you please also make the brand and the links be centered . Looks a little strange now but much better then before