X
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

Easy Mega Menu

This menu is called 'easy' because of the easy way the group menus open and close when needed. The submenus have initially a height of 0px. When the group buttons are clicked on, they get a height of 'auto' to show the submenu items. As soon as the mouse leaves those buttons again, the height gets back to none.

The menu can be made 'fixed' to the top of the page. It has been prepared in the 'easy-mega-styles.css'. All you have to do is 'uncomment' the lines 11 and 12, and edit the top margin on line 71 (explained in the stylesheet). However, the fixed positioning will kick in only when the viewport is wider than 670px. That is to enable scrolling the menus on devices like smart-phones.

In order to enable scrolling at all, the page has to have enough content to make it scroll. The best thing is to use the container .rest-of-page (where this text is) and pop your page contents in there. Then you don't risk interfering with the menu. And you can set a min-height on that container, like e.g. 100vh.

If you want to have the menu bar go right across the page, you can set the .button-wrapper to 100% (it is at 75% now).

If you need more pages, you'll have to to create them yourself. A good idea is to start by duplicating the index page.

Download the component.