A beauty drop down responsive menu that shows its sub menus with icon
symbol using open symbol fonts that allowing you to add more icons as
you want. With my previous tutorial, i also show how to create Creating 3-Level Responsive Drop Down Navigation Menu with jQuery and CSS3 as well.
Today we would like to show an experimental drop-down menu with
jquery and css3 using beautiful symbol fonts. The main idea is to help
you to save time for creating menus for website, it have a lot of
content and sub-levels. Some sub-level in this menu will be shown in its
context and icons. The menu is best use in professional web design that
it can be used easily in a responsive layout.
This Responsive Drop Down Navigation Menu using plugin such as:
The Markup Language
The HTML :
03 | < div class = "inner relative" > |
04 | < a class = "logo" href = "http://www.freshdesignweb.com" >< img src = "images/logo.png" alt = "fresh design web" ></ a > |
05 | < a id = "menu-toggle" class = "button dark" href = "#" >< i class = "icon-reorder" ></ i ></ a > |
08 | < li class = "current-menu-item" >< a href = "http://www.freshdesignweb.com" >Home</ a ></ li > |
10 | < a href = "http://www.freshdesignweb.com/responsive-drop-down-menu-jquery-css3-using-icon-symbol.html" >Features</ a > |
12 | < li >< a href = "http://www.freshdesignweb.com/responsive-drop-down-menu-jquery-css3-using-icon-symbol.html" >< i class = "icon-wrench" ></ i > Elements</ a ></ li > |
13 | < li >< a href = "http://www.freshdesignweb.com/responsive-drop-down-menu-jquery-css3-using-icon-symbol.html" >< i class = "icon-credit-card" ></ i > Pricing Tables</ a ></ li > |
14 | < li >< a href = "http://www.freshdesignweb.com/responsive-drop-down-menu-jquery-css3-using-icon-symbol.html" >< i class = "icon-gift" ></ i > Icons</ a ></ li > |
16 | < a class = "parent" href = "#" >< i class = "icon-file-alt" ></ i > Pages</ a > |
18 | < li >< a href = "http://www.freshdesignweb.com/responsive-drop-down-menu-jquery-css3-using-icon-symbol.html" >Full Width</ a ></ li > |
19 | < li >< a href = "http://www.freshdesignweb.com/responsive-drop-down-menu-jquery-css3-using-icon-symbol.html" >Left Sidebar</ a ></ li > |
20 | < li >< a href = "http://www.freshdesignweb.com/responsive-drop-down-menu-jquery-css3-using-icon-symbol.html" >Right Sidebar</ a ></ li > |
21 | < li >< a href = "http://www.freshdesignweb.com/responsive-drop-down-menu-jquery-css3-using-icon-symbol.html" >Double Sidebar</ a ></ li > |
26 | < li >< a href = "http://www.freshdesignweb.com/responsive-drop-down-menu-jquery-css3-using-icon-symbol.html" >Portfolio</ a ></ li > |
28 | < a href = "http://www.freshdesignweb.com/responsive-drop-down-menu-jquery-css3-using-icon-symbol.html" >Blog</ a > |
30 | < li >< a href = "http://www.freshdesignweb.com/responsive-drop-down-menu-jquery-css3-using-icon-symbol.html" >Large Image</ a ></ li > |
31 | < li >< a href = "http://www.freshdesignweb.com/responsive-drop-down-menu-jquery-css3-using-icon-symbol.html" >Medium Image</ a ></ li > |
32 | < li >< a href = "http://www.freshdesignweb.com/responsive-drop-down-menu-jquery-css3-using-icon-symbol.html" >Masonry</ a ></ li > |
33 | < li >< a href = "http://www.freshdesignweb.com/responsive-drop-down-menu-jquery-css3-using-icon-symbol.html" >Double Sidebar</ a ></ li > |
34 | < li >< a href = "http://www.freshdesignweb.com/responsive-drop-down-menu-jquery-css3-using-icon-symbol.html" >Single Post</ a ></ li > |
37 | < li >< a href = "http://www.freshdesignweb.com/responsive-drop-down-menu-jquery-css3-using-icon-symbol.html" >Contact</ a ></ li > |
40 | < div class = "clear" ></ div > |
The CSS
003 | text-decoration : none ; |
038 | background-color : #333 ; |
039 | padding-bottom : 20px ; |
042 | display : inline- block ; |
065 | display : inline- block ; |
070 | #main-menu > li.parent { |
071 | background-image : url (../images/plus- gray .png); |
072 | background- size : 7px 7px ; |
073 | background-repeat : no-repeat ; |
074 | background-position : left center ; |
077 | #main-menu > li.parent > a { |
086 | text-decoration : none ; |
089 | #main-menu > li:hover > a, |
090 | #main-menu > li.current-menu-item > a { |
109 | ul.sub-menu ul.sub-menu { |
116 | ul.sub-menu > li > a { |
117 | background-color : #333 ; |
118 | border : 1px solid #444 ; |
127 | ul.sub-menu > li > a:hover { |
128 | background-color : #2a2a2a ; |
132 | ul.sub-menu > li:first-child { |
133 | border-top : 3px solid #23dbdb ; |
136 | ul.sub-menu ul.sub-menu > li:first-child { |
137 | border-top : 1px solid #444 ; |
140 | ul.sub-menu > li:last-child > a { |
141 | border-radius: 0 0 2px 2px ; |
144 | ul.sub-menu > li > a.parent { |
145 | background-image : url (../images/arrow.png); |
146 | background- size : 5px 9px ; |
147 | background-repeat : no-repeat ; |
148 | background-position : 95% center ; |
151 | #main-menu li:hover > ul.sub-menu { |
The CSS Responsive Style
01 | @media all and ( max-width : 700px ) { |
27 | #main-menu > li:first-child { |
32 | background-color : #333 ; |
33 | border : 1px solid #444 ; |
37 | padding : 12px !important ; |
41 | #main-menu li > a:hover { |
42 | background-color : #444 ; |
45 | #main-menu > li.parent { |
46 | background : none !important ; |
50 | #main-menu > li:hover > a, |
51 | #main-menu > li.current-menu-item > a { |
52 | border : 1px solid #444 !important ; |
53 | color : #fff !important ; |
65 | ul.sub-menu > li:first-child { |
66 | border-top : 1px solid #444 !important ; |
69 | ul.sub-menu > li > a.parent { |
70 | background : #333 !important ; |
The JavaScript Function:
01 | $(document).ready( function () { |
04 | $( '#main-menu > li:has(ul.sub-menu)' ).addClass( 'parent' ); |
05 | $( 'ul.sub-menu > li:has(ul.sub-menu) > a' ).addClass( 'parent' ); |
07 | $( '#menu-toggle' ).click( function () { |
08 | $( '#main-menu' ).slideToggle(300); |
12 | $(window).resize( function () { |
13 | if ($(window).width() > 700) { |
14 | $( '#main-menu' ).removeAttr( 'style' ); |
Now! We have a Responsive Drop Down Menu jQuery CSS3 Using Icon
Symbol. Check out the demo link, and feel free to download this example
for future use. I hope you enjoyed this tutorial and find it useful!
Download Source code