{"id":2118,"date":"2016-11-26T19:00:28","date_gmt":"2016-11-26T19:00:28","guid":{"rendered":"http:\/\/cssreset.com\/?p=2118"},"modified":"2016-11-26T19:00:28","modified_gmt":"2016-11-26T19:00:28","slug":"css-snippets-navigation-menu-bars","status":"publish","type":"post","link":"https:\/\/cssdeck.com\/blog\/css-snippets-navigation-menu-bars\/","title":{"rendered":"CSS Snippets: Navigation Menu Bars"},"content":{"rendered":"<p>One thing most websites can&#8217;t live without is a good nav bar. With all of the different size screens that a site can be viewed on, it can be challenging to create a nav bar that&#8217;s functional\u00a0<em>AND\u00a0<\/em>good looking. Check out any of these snippets below for some great nav menu bar inspiration.<\/p>\n<p>1. <a href=\"http:\/\/css-snippets.com\/simple-horizontal-navigation\/\" target=\"_blank\">Simple Horizontal Navigation<\/a><\/p>\n<p><a href=\"http:\/\/css-snippets.com\/simple-horizontal-navigation\/\"><img decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-2119 aligncenter\" alt=\"Screen Shot 2016-11-26 at 1.46.12 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-1.46.12-PM-1024x240.png\" width=\"1024\" height=\"240\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-1.46.12-PM-1024x240.png 1024w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-1.46.12-PM-300x70.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-1.46.12-PM-180x42.png 180w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-1.46.12-PM.png 1604w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This simple navigation bar is a great example of a great, standard nav menu. Colors, fonts, and menu items can be completely customized.<\/p>\n<p>2. <a href=\"http:\/\/thecodeplayer.com\/walkthrough\/basic-nav-menu-with-dropdown\" target=\"_blank\">Basic Navigation Menu with Dropdown<\/a><\/p>\n<p><a href=\"http:\/\/thecodeplayer.com\/walkthrough\/basic-nav-menu-with-dropdown\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2120 aligncenter\" alt=\"Screen Shot 2016-11-26 at 1.48.05 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-1.48.05-PM.png\" width=\"916\" height=\"448\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-1.48.05-PM.png 916w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-1.48.05-PM-300x146.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-1.48.05-PM-180x88.png 180w\" sizes=\"(max-width: 916px) 100vw, 916px\" \/><\/a><\/p>\n<p>This snippet is for a pure CSS nav menu with dropdown functionality. It&#8217;s much like the Simple Horizontal Navigation Menu above, except for the dropdown menu option, which is achieved without the use of jQuery.<\/p>\n<p>3. <a href=\"http:\/\/thecodeplayer.com\/walkthrough\/basic-nav-menu-with-dropdown\" target=\"_blank\">CSS Dark Navigation<\/a><\/p>\n<p><a href=\"http:\/\/thecodeplayer.com\/walkthrough\/basic-nav-menu-with-dropdown\"><img decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-2121 aligncenter\" alt=\"Screen Shot 2016-11-26 at 1.49.44 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-1.49.44-PM-1024x139.png\" width=\"1024\" height=\"139\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-1.49.44-PM-1024x139.png 1024w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-1.49.44-PM-300x40.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-1.49.44-PM-180x24.png 180w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-1.49.44-PM.png 1160w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This snippet for a dark themed navigation bar comes complete with hover and active states.<\/p>\n<p>4. <a href=\"http:\/\/bootsnipp.com\/snippets\/featured\/fancy-sidebar-navigation\" target=\"_blank\">Fancy Toggle Sidebar Navigation<\/a><\/p>\n<p><a href=\"http:\/\/bootsnipp.com\/snippets\/featured\/fancy-sidebar-navigation\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2122 aligncenter\" alt=\"Screen Shot 2016-11-26 at 1.55.58 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-1.55.58-PM.png\" width=\"550\" height=\"792\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-1.55.58-PM.png 550w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-1.55.58-PM-208x300.png 208w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-1.55.58-PM-180x259.png 180w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This horizontal nav menu has a clean, modern design and its fully responsive. It toggles in and out of view when triggered, and it does so using smooth CSS animations.<\/p>\n<p>5. <a href=\"https:\/\/codyhouse.co\/gem\/stripe-navigation\/\" target=\"_blank\">Stripe.com Animation<\/a><\/p>\n<p><a href=\"https:\/\/codyhouse.co\/gem\/stripe-navigation\/\"><img decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-2123 aligncenter\" alt=\"Screen Shot 2016-11-26 at 2.00.29 PM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-2.00.29-PM-1024x582.png\" width=\"1024\" height=\"582\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-2.00.29-PM-1024x582.png 1024w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-2.00.29-PM-300x170.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-2.00.29-PM-180x102.png 180w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2016\/11\/Screen-Shot-2016-11-26-at-2.00.29-PM.png 1688w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a>\u00a0The navigation bar in this snippet is inspired by the one on <a href=\"https:\/\/stripe.com\/\" target=\"_blank\">stripe.com<\/a>. The dropdown menus are animated and change size based on the content within them. The nav bar is also fully responsive.<\/p>\n<div class=\"wp-socializer wpsr-share-icons \" data-lg-action=\"show\" data-sm-action=\"show\" data-sm-width=\"768\" ><h3>Share and Enjoy !<\/h3><div class=\"wpsr-si-inner\"><div class=\"wpsr-counter wpsrc-sz-32px\" style=\"color:#000\"><span class=\"scount\"><span data-wpsrs=\"\" data-wpsrs-svcs=\"facebook,twitter,linkedin,pinterest,print,pdf\">0<\/span><\/span><small class=\"stext\">Shares<\/small><\/div><div class=\"socializer sr-popup sr-32px sr-circle sr-opacity sr-pad sr-count-1 sr-count-1\"><span class=\"sr-facebook\"><a rel=\"nofollow\" href=\"https:\/\/www.facebook.com\/share.php?u=\" target=\"_blank\"  title=\"Share this on Facebook\"  style=\"color: #ffffff\" ><i class=\"fab fa-facebook-f\"><\/i><span class=\"ctext\"><span data-wpsrs=\"\" data-wpsrs-svcs=\"facebook\">0<\/span><\/span><\/a><\/span>\n<span class=\"sr-twitter\"><a rel=\"nofollow\" href=\"https:\/\/twitter.com\/intent\/tweet?text=%20-%20%20\" target=\"_blank\"  title=\"Tweet this !\"  style=\"color: #ffffff\" ><i class=\"fab fa-twitter\"><\/i><\/a><\/span>\n<span class=\"sr-linkedin\"><a rel=\"nofollow\" href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=\" target=\"_blank\"  title=\"Add this to LinkedIn\"  style=\"color: #ffffff\" ><i class=\"fab fa-linkedin-in\"><\/i><\/a><\/span>\n<span class=\"sr-pinterest\"><a rel=\"nofollow\" href=\"https:\/\/www.pinterest.com\/pin\/create\/button\/?url=&amp;media=&amp;description=\" target=\"_blank\"  title=\"Submit this to Pinterest\"  style=\"color: #ffffff\" data-pin-custom=\"true\"><i class=\"fab fa-pinterest\"><\/i><span class=\"ctext\"><span data-wpsrs=\"\" data-wpsrs-svcs=\"pinterest\">0<\/span><\/span><\/a><\/span>\n<span class=\"sr-print\"><a rel=\"nofollow\" href=\"https:\/\/www.printfriendly.com\/print?url=\" target=\"_blank\"  title=\"Print this article \"  style=\"color: #ffffff\" ><i class=\"fa fa-print\"><\/i><\/a><\/span>\n<span class=\"sr-pdf\"><a rel=\"nofollow\" href=\"https:\/\/www.printfriendly.com\/print?url=\" target=\"_blank\"  title=\"Convert to PDF\"  style=\"color: #ffffff\" ><i class=\"fa fa-file-pdf\"><\/i><\/a><\/span><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>One thing most websites can&#8217;t live without is a good nav bar. With all of the different size screens that a site can be viewed on, it can be challenging to create a nav bar that&#8217;s functional\u00a0AND\u00a0good looking. Check out [&#8230;]<\/p>\n<p><a class=\"more-link article\" href=\"https:\/\/cssdeck.com\/blog\/css-snippets-navigation-menu-bars\/\" title=\"Click to read 'CSS Snippets: Navigation Menu Bars'\">Read Article<\/a><\/p>\n","protected":false},"author":18,"featured_media":2123,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/2118"}],"collection":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/comments?post=2118"}],"version-history":[{"count":1,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/2118\/revisions"}],"predecessor-version":[{"id":2125,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/2118\/revisions\/2125"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/media\/2123"}],"wp:attachment":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/media?parent=2118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/categories?post=2118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/tags?post=2118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}