Author: Joni Halabi (www.thatdevgirl.com)
This simple mega navigation menu is inspired by the many mega menus on retail and other websites. This CSS-only solution is completely customizable - simply modify the HTML and CSS files to meet your specific needs.
The HTML for the navigation is enclosed in the
tag, which contains 3 levels of navigation:-
Level 1 is an unordered list containing only the links in this first level. These links appear as a bar across the top of the navigation. This list has no child lists.
-
Level 2 is an unordered list containing the links in this second level. These links appear as a bar across the top of the navigation, below the level 1 navigation. Each element can have a child element containing the level 3 navigation.
-
Level 3 is hidden on page load and only appears when the user hovers over the applicable link in level 3. The Level 3 navigation is contained in a
tag and can contain any HTML.
This project contains 2 CSS files:
-
reset.css: Just a basic CSS reset, inspired by the Eric Meyers' CSS reset.
-
menu.css: Contains the base styles for the menu, including all hover styles. The aesthetics are really basic and monochromatic; this CSS file was written with the idea that the developer end-user can customize the styles to match whatever website you are working on.
Thank you to Place Kitten (http://placekitten.com/) for supplying images used in the Level 3 navigation.