Oct 29, 2015

Black & Blue Color Responsive Drop Down Menu for Blogger [V4]

Hey guys. As for your request, we are today herewith another Responsive Dropdown Menu  Bar for Your Blogger Blog. This menu bar is fully design with pure CSS and HTML coding so this is fast loading. There are many responsive drop down menu which you can find on another blog but we are sharing here 4th Responsive drop down menu bar/Navigation Bar, All are made up by Pure CSS and HTML coding.

The task of Designing a responsive blogger template starts with the Header and the most important part of Header is the top navigation menu that provides useful links to your inner pages.

Responsive drop down menus are viral now and can be seen widely implemented on all wordpress blogs and even mashable.com. Today we are releasing the first ever tutorial on designing a flexible Drop down navigation menu for BlogSpot blogs without using a single script or image! The best part is that it is not just a flat menu but with a drop down list. This makes our tutorial distinguished from those several codes and plugins proposed by some Geeky friends at Github. Using simply HTML5 <nav> tags and CSS3 :checked selectors, we managed to design a menu that we hope would be useful to the blogger community because it is really an efficient menu that is compatible with all major browsers and uses no Jquery at all!

The screenshots below are taken using my Android Phone to give you an idea of how your blog menu would look like in mobile screen. The menu auto adjusts itself using CSS3 media queries which we already discussed in first part of this series.

Black and Blue Responsive Drop Down Menu Bar for Blogger

Check Live Demo Here

Tip: If you are using Desktop computer then simply increase and decrease your browser window manually using your mouse and observe how menu toggles between two different styles and expands/collapses when clicked.

Now Start the tutorial and learn How to add Black & Blue Color Responsive Drop Down Menu Bar In Blogger Blog. Follow all steps carefully which are given below.

Disable Mobile Template First.

Note If you have activated mobile view for your blog then you must first disable it by going to:
  1. Blogger > Template
  2. click the gear icon
  3. Select No. Show desktop template on mobile devices.
  4. Save

How To Add Responsive Drop Down Menu in Blogger?

  1. Go To blogger > Template
  2. Backup your template
  3. Click Edit HTML
  4. Search for these lines or similar. These lines of code exist at the top section of your template.

<b:if cond='data:blog.isMobile'>
<meta content='width=device-width, initial-scale=1.0, user-scalable=0' name='viewport'/>
<meta content='width=1100' name='viewport'/>
Replace all the above code with our custom Meta ViewPort code:
<meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport'/> <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>
I have also included a UTF-8 character set for using some Special characters instead of images.
   5. Now Search for </b:skin>.  Click the black arrow to expand the code.
   6.  Paste the following Styles just above </b:skin>
/*-----Responsive Drop Down Menu by MBG ----*/body {margin: 0px;}#menuv2mbg{background: #03081A;color: #FFF;height: 50px;border-bottom: 4px solid #476EFC;border-top: 4px solid #476EFC;}#menuv2mbg ul,#menuv2mbg li{margin:0 auto;padding:0 0;list-style:none}#menuv2mbg ul{height:55px;width:100%}#menuv2mbg li{float:left;display:inline;position:relative;font:15px Arial;}#menuv2mbg a{display: block;line-height: 50px;padding: 0 14px;text-decoration: none;color: #FFF;}#menuv2mbg li a:hover{color: #FFF;-webkit-transition: all .1s ease-in-out;-moz-transition: all .1s ease-in-out;-ms-transition: all .1s ease-in-out;-o-transition: all .1s ease-in-out;transition: all .1s ease-in-out;background: #476EFC;}#menuv2mbg input{display:none;margin:0 0;padding:0 0;width:80px;height:30px;opacity:0;cursor:pointer}#menuv2mbg label{font: Arial;display:none;width:35px;height:36px;line-height:50px;text-align:center}#menuv2mbg label span{font-size:20px;position:absolute;left:35px}#menuv2mbg ul.menusv2mbg{height: auto;overflow: hidden;width: 120px;background: #03081A;position: absolute;z-index: 99;display: none;}#menuv2mbg ul.menusv2mbg li{display: block;width: 100%;font:normal 0.8em Arial;text-transform: none;text-shadow: none;}#menuv2mbg ul.menusv2mbg a{color: #FFF;line-height: 35px;}#menuv2mbg li:hover ul.menusv2mbg{display:block}#menuv2mbg ul.menusv2mbg a:hover{background: #476EFC;color: #FFF;-webkit-transition: all .1s ease-in-out;-moz-transition: all .1s ease-in-out;-ms-transition: all .1s ease-in-out;-o-transition: all .1s ease-in-out;transition: all .1s ease-in-out;}
@media screen and (max-width: 800px){
#menuv2mbg ul{background:#111;position:absolute;top:100%;right:0;left:0;z-index:3;height:auto;display:none}
#menuv2mbg ul.menusv2mbg{width:100%;position:static;padding-left:20px}
#menuv2mbg li{display:block;float:none;width:auto; font:normal 0.8em Arial;}
#menuv2mbg input,#menuv2mbg label{position:absolute;top:0;left:0;display:block}
#menuv2mbg input{z-index:4}
#menuv2mbg input:checked + label{color:white}
#menuv2mbg input:checked ~ ul{display:block}
   7.  Now search for <body>    Just below it paste the follow code which will             create the menu structure:
<nav id='menuv2mbg'><input type='checkbox'/><label>&#8801;<span>Menu</span></label><ul><li class='highlight'><a href='/'>Home</a></li><li><a href='#'>Hello</a></li><li><a href='#'>Responsive</a></li><li><a href='#'>Drop Down</a><ul class='menusv2mbg'> <li><a href='#'>Tab 1</a></li> <li><a href='#'>Tab 2</a></li> <li><a href='#'>Tab 3</a></li> <li><a href='#'>Tab 4</a></li> <li><a href='#'>Tab 5</a></li> </ul> </li> <li><a href='#'>Menu</a></li><li><a href='#'>Bar</a><ul class='menusv2mbg'><li><a href='#'>Tab 1</a></li> <li><a href='#'>Tab 2</a></li> <li><a href='#'>Tab 3</a></li></ul></li><li><a href='#'>Get This Menu Bar</a></li></ul></nav>

  • I am sure you know how to create new tabs but to create a tab for a drop down list use the following format:

Paste the following code below <ul> or above </ul> to create a drop down list:

<li><a href='#'>Drop Down</a> <ul class='menusv2mbg'> <li><a href='#'>Tab 1</a></li> <li><a href='#'>Tab 2</a></li></ul> </li>
The above menu will create only one drop down list and not multi-level drop down lists because it makes no sense to complicate the design layout for mobile devices. Keeping it simple is best.

  8.  finally save your template and you are all done!

Now play with your browser window and adjust its size manually to see it working just perfectly! :)

In the above example, the Main Menu is automatically set to display:none when the screen size width is below or equal to 800px . I used checkboxes to introduces the toggle effect. So as soon as the screen size reaches 800px or further decreases, the CSS media queries detects it and automatically set the mode of the box to checked and apply the styles. This is an interesting technique that we utilized here which eliminated the need for JQuery toggle function.
I have used only two major break points and that is width:1024px  for Desktop computer Screens and 800px for devices which include Tablets, ipads and smart phones. So the entire concept is made extremely easy.

See Also Another Stylish Widget

  1.  Stylish Contact Form for Blogger! Add to Static Page.
  2. Stylish Popup Subscription Box for Blogger.
  3. WordPress Like Floating Social Sharing Counter Buttons for Blogger.


So above guide is about How To Add Responsive Drop Down Menu to Blogger Blog? Please let me know if you want any help here. I hope this technique would further help developers to create more interesting blogger templates and contribute further to the blogosphere community. I would love to hear your feedback on this. Please let us know of your precious views so that we could improve it further if needed. Peace and blessings buddies :)

No comments:

Post a Comment

We’re eager to see your comment. If you have any query related to the topic then drop a comment below. We will help you out of sure. However, Please Keep in mind that all comments are moderated manually by our human reviewers. According to our comment policy all link are nofollow so keep in mind that never use links in comments, we consider link comments as a spam.