Back to the
Component Shop
Read this first! Accordion Alert / Callout Another Lightbox Gallery Audio Player with Playlist Auto Sidebar Backbutton Basic Form Before/After Comparison Buttons Collapsible Alert Contact Form Count-down Script Crossfade Slider CSS Parallax Cut-out Text Decorative Background Details/Summary Classes Drilldown Menu Drop-down Easy Mega Menu Equal Height Columns Filtered Portfolio Flip-cards Glossary Table Hamburger Menu HTML Quiz Horizontal Tabs Image Gallery Image Modal Image Shapes Image Slider with Fade Jquery Parallax Lazy Loading Lightbox Gallery Magnifying Glass Masonry Grid Gallery Mega Menu Modal Optimal Image Sizes Oval Image PHP Includes Range Slider Read More Button Responsive Card Table Responsive Navbar Responsive Shrinknav Responsive Sidebar Responsive Table Round Image Scroll to Top Searchbox Simple Shapes Simple Cards Simple Slider Skill Bars Slide-in Nav Sticky Mega Menu Sticky Vertical Menu Subnav in Dropdowns Tabbed Gallery Tab Navigation Text on Image Translucent Image Translucent Text Layer Vertical Tabs Video Video Scroller Wrapping Text Years Completed Zebra Striped Table

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 black background, find the container with the class name .dark.

The menu has a width limitation of 1200px which can be changed - or removed. If you want to change the logo, you can use most anything up to 75px height without having to alter any other settings. Beyond that, you will need to play with the height and padding of the .menu-topwrap container.

This even works in IE11.

Download the component.

The image is a demo for the anchor in the menu

Full moon