Sometimes it can be hard to make a menu close after it has been clicked on, especially if the viewport has been narrowed so that the 'hamburger' is the icon to open it with, and if there is a link going to a section further down on the same page. This has been remedied here with a bit of java script. The menu item 'anchor' is such a link, and when clicked on, it will take you to an image on this page, below these comments. Try it with a narrow viewport!
To edit the menu with the dark background, find the container with the class name .dark.
The menu has a width limitation of 1200px which can be changed - or removed.
The second download option is more or less the same menu, but made as a 'hamburger' menu for the whole width of a page. The icon will just be sitting unobtrusively up in the right corner (or left corner, if you prefer).
This variant is especially suited for a 'single page' website. The containers below the menu are there to demonstrate how to make the links. Those containers can be edited and styled in whichever way you want.
Hamburger Menu
Sometimes it can be hard to make a menu close after it has been clicked on, especially if the viewport has been narrowed so that the 'hamburger' is the icon to open it with, and if there is a link going to a section further down on the same page. This has been remedied here with a bit of java script. The menu item 'anchor' is such a link, and when clicked on, it will take you to an image on this page, below these comments. Try it with a narrow viewport!
To edit the menu with the dark background, find the container with the class name .dark.
The menu has a width limitation of 1200px which can be changed - or removed.
The second download option is more or less the same menu, but made as a 'hamburger' menu for the whole width of a page. The icon will just be sitting unobtrusively up in the right corner (or left corner, if you prefer).
This variant is especially suited for a 'single page' website. The containers below the menu are there to demonstrate how to make the links. Those containers can be edited and styled in whichever way you want.
These menus even works in IE11.
Download this component (displayed)
Download the full page component