With the introduction of Blogger Template Designer, template editing has become more difficult for newbies due to excessive use of dynamic coding. The Famous templates are designed by Josh Peterson which includes the watermark and Picture Window template. ![]()
Add Drop Down Menu To New Blogger Templates
- Go To Blogger > Design > Edit HTML
- Backup your template and search for a similar code like this one,
/* Tabs
----------------------------------------------- */
.tabs-inner .widget ul {
padding: 0;
display:none;
background: $(tabs.background.color) $(tabs.background.gradient) repeat scroll bottom;-moz-border-radius: $(tabs.border.radius);
-webkit-border-radius: $(tabs.border.radius);
-goog-ms-border-radius: $(tabs.border.radius);
border-radius: $(tabs.border.radius);
}.tabs-inner .widget li {
border: none;
display:none;}.tabs-inner .widget li a {
display: inline-block;padding: .5em 1em;
margin-$endSide: $(tabs.spacing);color: $(tabs.text.color);
font: $(tabs.font);
display:none;
-moz-border-radius: $(tab.border.radius) $(tab.border.radius) 0 0;
-webkit-border-top-left-radius: $(tab.border.radius);
-webkit-border-top-right-radius: $(tab.border.radius);
-goog-ms-border-radius: $(tab.border.radius) $(tab.border.radius) 0 0;
border-radius: $(tab.border.radius) $(tab.border.radius) 0 0;background: $(tab.background);
border-$endSide: 1px solid $(tabs.separator.color);
}.tabs-inner .widget li:first-child a {
padding-$startSide: 1.25em;
display:none;
-moz-border-radius-top$startSide: $(tab.first.border.radius);
-moz-border-radius-bottom$startSide: $(tabs.border.radius);
-webkit-border-top-$startSide-radius: $(tab.first.border.radius);
-webkit-border-bottom-$startSide-radius: $(tabs.border.radius);
-goog-ms-border-top-$startSide-radius: $(tab.first.border.radius);
-goog-ms-border-bottom-$startSide-radius: $(tabs.border.radius);
border-top-$startSide-radius: $(tab.first.border.radius);
border-bottom-$startSide-radius: $(tabs.border.radius);
}.tabs-inner .widget li.selected a,
.tabs-inner .widget li a:hover {
position: relative;
z-index: 1;background: $(tabs.selected.background.color) $(tab.selected.background.gradient) repeat scroll bottom;
color: $(tabs.selected.text.color);
display:none;
-moz-box-shadow: 0 0 $(region.shadow.spread) rgba(0, 0, 0, .15);
-webkit-box-shadow: 0 0 $(region.shadow.spread) rgba(0, 0, 0, .15);
-goog-ms-box-shadow: 0 0 $(region.shadow.spread) rgba(0, 0, 0, .15);
box-shadow: 0 0 $(region.shadow.spread) rgba(0, 0, 0, .15);
}
You just need to remove the comment quote from the top i.e.
*/and add it to the bottom as shown below:
/* Tabs
-----------------------------------------------.tabs-inner .widget ul {
padding: 0;
display:none;
background: $(tabs.background.color) $(tabs.background.gradient) repeat scroll bottom;-moz-border-radius: $(tabs.border.radius);
-webkit-border-radius: $(tabs.border.radius);
-goog-ms-border-radius: $(tabs.border.radius);
border-radius: $(tabs.border.radius);
}.tabs-inner .widget li {
border: none;
display:none;}.tabs-inner .widget li a {
display: inline-block;padding: .5em 1em;
margin-$endSide: $(tabs.spacing);color: $(tabs.text.color);
font: $(tabs.font);
display:none;
-moz-border-radius: $(tab.border.radius) $(tab.border.radius) 0 0;
-webkit-border-top-left-radius: $(tab.border.radius);
-webkit-border-top-right-radius: $(tab.border.radius);
-goog-ms-border-radius: $(tab.border.radius) $(tab.border.radius) 0 0;
border-radius: $(tab.border.radius) $(tab.border.radius) 0 0;background: $(tab.background);
border-$endSide: 1px solid $(tabs.separator.color);
}.tabs-inner .widget li:first-child a {
padding-$startSide: 1.25em;
display:none;
-moz-border-radius-top$startSide: $(tab.first.border.radius);
-moz-border-radius-bottom$startSide: $(tabs.border.radius);
-webkit-border-top-$startSide-radius: $(tab.first.border.radius);
-webkit-border-bottom-$startSide-radius: $(tabs.border.radius);
-goog-ms-border-top-$startSide-radius: $(tab.first.border.radius);
-goog-ms-border-bottom-$startSide-radius: $(tabs.border.radius);
border-top-$startSide-radius: $(tab.first.border.radius);
border-bottom-$startSide-radius: $(tabs.border.radius);
}.tabs-inner .widget li.selected a,
.tabs-inner .widget li a:hover {
position: relative;
z-index: 1;background: $(tabs.selected.background.color) $(tab.selected.background.gradient) repeat scroll bottom;
color: $(tabs.selected.text.color);
display:none;
-moz-box-shadow: 0 0 $(region.shadow.spread) rgba(0, 0, 0, .15);
-webkit-box-shadow: 0 0 $(region.shadow.spread) rgba(0, 0, 0, .15);
-goog-ms-box-shadow: 0 0 $(region.shadow.spread) rgba(0, 0, 0, .15);
box-shadow: 0 0 $(region.shadow.spread) rgba(0, 0, 0, .15);
}
*/
3. Save your template and you are done! You can reactivate the above coding anytime you want by reversing the step.
Now add your drop down menu happily by reading this tutorial -> Drop Down Menu
The only thing you need to do extra is to use the CSS code below instead of the one I shared in the earlier tutorial. Rest all steps are exactly the same.
/*----- MBT Drop Down Menu ----*/
#mbtnavbar {
background: #060505;
width: 100%;
color: #FFF;
margin: 10px 0;
padding: 0;
position: relative;
border-top:0px solid #960100;
height:35px;}
#mbtnav {
margin: 0;
padding: 0;
}
#mbtnav ul {
float: left;
list-style: none;
margin: 0;
padding: 0;
}
#mbtnav li {
list-style: none;
margin: 0;
padding: 0;
border-left:1px solid #333;
border-right:1px solid #333;
height:34px;
}
#mbtnav li a, #mbtnav li a:link, #mbtnav li a:visited {
color: #FFF;
display: block;
font:normal 12px Helvetica, sans-serif;
margin: 0;
padding: 9px 12px 10px 12px;
text-decoration: none;
}
#mbtnav li a:hover, #mbtnav li a:active {
background: #BF0100;
color: #FFF;
display: block;
text-decoration: none;
margin: 0;
padding: 9px 12px 10px 12px;
}#mbtnav li {
float: left;
padding: 0;
}
#mbtnav li ul {
z-index: 9999;
position: absolute;
left: -999em;
height: auto;
width: 160px;
margin: 0;
padding: 0;
}
#mbtnav li ul a {
width: 140px;
}
#mbtnav li ul ul {
margin: -25px 0 0 161px;
}
#mbtnav li:hover ul ul, #mbtnav li:hover ul ul ul, #mbtnav li.sfhover ul ul, #mbtnav li.sfhover ul ul ul {
left: -999em;
}
#mbtnav li:hover ul, #mbtnav li li:hover ul, #mbtnav li li li:hover ul, #mbtnav li.sfhover ul, #mbtnav li li.sfhover ul, #mbtnav li li li.sfhover ul {
left: auto;
}
#mbtnav li:hover, #mbtnav li.sfhover {
position: static;
}#mbtnav li li a, #mbtnav li li a:link, #mbtnav li li a:visited {
background: #BF0100;
width: 120px;
color: #FFF;
display: block;
font:normal 12px Helvetica, sans-serif;
margin: 0;
padding: 9px 12px 10px 12px;
text-decoration: none;
z-index:9999;
border-bottom:1px dotted #333;
}
#mbtnav li li a:hover, #mbtnavli li a:active {
background: #060505;
color: #FFF;
display: block;
margin: 0;
padding: 9px 12px 10px 12px;
text-decoration: none;
}
If you needed any further help feel free to ask. Peace out.

If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »









45 comments:
Thanks so much for working on this for me. I've got everything updated but still having a hard time with the drop down menu. Its not showing all of the links. Is there a height adjustment that I should make?
Many Thanks :)
You know what.. I got it!! I just deleted the entire "Tabs" section from the original code written by Josh. Just I just need to get rid of the dotted lines and I'm finished!! Horray!!
@Meg
To remove the dotted lines find and delete this code,
border-bottom:1px dotted #333;
You can change dotted to solid, dashed is you want.
And you are always welcomed. :>
but it's not rounded shape :(
@Mohammad Mustafa Ahmedzai
I think he will update a post on that to integrate the rounded corners CSS to the tabs... right? :P
Moving the */ made: 1) the menu appear as all white (background and text) with black lines separating the menu items and 2) did not make the menu span the entire width of my header. When I hovered over where I thought a menu items would be, it did give me the drop down menu and I could see the drop down menu options.
It seems in my case that the simple template doesn't like having the */ moved.
Thanks for your help. Do you have any other suggestions?
i dont know whats wrong...i cant made the drop down.. it wasnt show correctly.
i take a screenshoot of it
http://i287.photobucket.com/albums/ll160/lenalinah/untitled-2.jpg
Is there a limitation to 4 tabs in the code.
Mine is showing only 4 tabs, the other 3 I want to add are displayed like code lines under the main menu.
thank you for your time
Thanks a lot. Finally it worked in my blog :)
there is some problem it shows only upto one level
Thanks
Blogger Banua Menuju Blogger Nusantara 2011
Thank you so much for this post. Your code solved a problem I had been trying to figure out for hours! Just one issue: the drop-down menu works perfectly in Firefox, Chrome and Safari, but for some reason does not work in IE (IE8, which is what I and most of my readers use). When I hover over the tab, the menu drops down, but it is partially behind the rest of the text on the page and I can't select any of the links. Any idea how to fix this in IE?
This is great, but I'm not able to get it to work on IE browser only FF. Any clue what this issue is?
Here are the issues I'm having using this navbar.
1. The drop down menu works, but only for two rows. When I mouse over the 3rd in the list, the list disappears, I cannot select or highlight it.
2. Asthetically, I would like to remove the bottom border color on the navbar so there are no borders. I've acheived this with the top, right and left, but the bottom still remains.
3. When a link is selected, it is boxed in with a dotted line. I would like to remove this.
Your help would be so appeciated. Thank you for the work you've done.
amazing post.............
I can't use this in the other templates. I just get an error. I would like to use another one. How can I make it work for the other ones?
I would like to use the Etheral template by Jason Morrow.
Doesn't work after I move the */ part and save template I get an error. This is very frusterating. No drop down menu tutorials ever work for me. =(
http://anmolrawat.blogspot.com/
ohk i got it by moving star. now the problem is that i have added the link in the html of a particular label.. everything is fine.. when i click the tab, it goes to the link but here comes the problem.. it says no post under the label... while if i click on that label through labels under the post i can see the post..
plz reply asap .. m so frustrated..
oh got it.. my bad.. for readers if you encounter same problem, just avoid capslock in labels as the javascript widget don't support it
just one problem now, go to my blog and see, the drop down menu works fine now.. just when we drop down the selected tab is not highlighted.. any solution?
Thanks for the post - really helpful! However, when I add more than 3 items to the drop down menu, the menu splits apart. http://www.bgstest1.blogspot.com/ (hover over "She Surfs" in my nav bar). Any fixes for this?
Thanks! :)
http://sarkari-career.blogspot.com/
Hello Mohammad, thank you for your support here on this issue. I know you have had a ton of responses and I am just one more in the pile but I do believe I need your help as well. ;-) I, too, have a Josh Peterson template and did as you instructed in this post. However, I cannot get my sub-categories (my drop downs) to actually drop down. They are hovering next to the actual tab I created. For example, I created a Food tab and then I wanted to create a Flour category for one of the drop down menus. I cannot quite figure out what is wrong. Can you take a look and let me know what you think? I would appreciate it SO much! www.jokes-on-you.com Blessings, Kim
Hello Mohammad,
I have applied your menu in my blog
http://downnapp.blogspot.com
But as you can see the drop out menu is covered with the main wrapper.
Do you have any idea of how to fix this ?
Thanks in advance
i want to remove the drop down menu how could i do that???
same problem of me sir.It cannot works in the add html/java widgets.And I try also in adding it using the html editor it will not work in new blogger template of picture window
I am not getting a drop down list :-(
Hi Mohammed!
Thank you so much for this tutorial. The dropdown menu works so well on my blog about ADHD www.JuliannaNWilson.com
My problem is that when accessing my blog through Safari, the dropdown menu doesn't work. Do you know a trick that can help me solve this? It doesn't seem to recognize the page headers as links. In addition to this, the dropdown menu doesn't work.
Thank you again for your help!
Julie
Thanks for the great menu! I have implemented it, but it's not working correctly in IE. http://extremecouponprofessors.blogspot.com/
The dropdown is there, but it's behind the page elements even with Z-index 9999. It works fine in Firefox.
Also, it still has the dashed line in the dropdown and as the top border of the navbar even though I changed the css to have solid borders.
Thanks for your help!
Hello Mohammad.
would this method also work for the 'Awesome' blogger templates by Tina Chen?
The notes above do not translate exactly, so I wanted to check before calving up my template beyond repair.
For example, where to place the */ is not the same, and it is not clear where in the code I should add your CSS code for the drop down menu. Does it go directly under the /* Tabs section?
p.s. the blog im trying to build is http://securenetconsulting.blogspot.com/
many thanks
hey Mohammad,
i ve been reading your posts and thanks to you, i ve been able to add so many things to my blog. However, i have one question. I want to add this drop down menu to the left hand side of my header. Can you help??
i have made a menu from http://www.mybloggertricks.com/2012/01/css3-drop-down-menu-no-images-and-no.html on my website www.jobsonchoice.com Now from here onwards what the problem begins. When i tried adding html/javascript using add a gadget,just below the header my menu does not respond and is not picking up style sheet. Now when the same coding is added to say right sidebar or below posts using add a gadget,it works as it should be.
what is the problem below header because this is the place where menu shoul be?
Regards
Ranjit Singh
www.jobsonchoice.com
I am still having the the same problem with the drop down. When I hover over the top tab they all show, But when I move my courser down to select a page the drop down disappears. If you could please help my link is:
http://addressmthl.blogspot.com/
I also cannot get rid of the red dotted lines, by deleting border-bottom:1px dotted #333;
Please Help
I found where the problem comes from. However I do not know how to fix it. When I change the font to a larger size (from 12px to 20px) the drop down disappears when you move down the list.
http://addressmthl.blogspot.com/
I want to try it..
hello my name is muzammal
mere blog me har cheaz dubble ho gai ha pleaz help me
http://artistic4u.blogspot.com/
this my blog link
pleaz help me ok bay
Dear Mohammad.
Thank's for sharing this knowledge. I am really grateful.
I have followed your instruction, and it works.
Then I enlarge the font on the "MAIN MENU", and the "SUB-MENU" as well, then I got a problem.
Everytime I hoover the cursor on the "MAIN MENU" of the drop down menu, the "DROP DOWN MENU" shows up, but theres a gap between the "MAIN MENU" and "SUB-MENU".
When I head the cursor to "SUB-MENU", the "SUB-MENU" disappear, due it has to "CROSSING" the gap.
How can I fix this ?
I want to add breadcrumb in this template.
How should I do??
Dear Mohammed,
I did earlier creat a drop down menu from your post, but when i tried for the new drop down menu from this post i not able to get it. and moreover i don't have the /* Tab in my HTML, so i added it but still nothing happens as in your picture. please suggest. and give me solutions. my blog is http://www.blogs-in-blog.blogspot.com.
thank you for all the helpful tips! i have used the code from several of your posts to create a drop down menu that works well in firefox - but internet explorer is giving me issues with a number of areas on my blog! the drop down menu shows up partially with some of the tabs in red underneath it... anyone have an idea why it would do this? i also have weird black frames that show up around my posts on internet explorer... can't figure out why it would look this way! help!!
All Things with Purpose
Hi, I followed your drop down menu instructions and was able to create exactly what I wanted for a menu. It works great using Safari with my Mac, but when I access the blog using Internet Explorer with my PC the drop down doesn't work. It shows up, behind my main blog and disappears as soon as I hover the mouse over it. Any idea why it would be doing this? Any suggestions would be much appreciated...the blog is arikandme.blogspot.com Thanks!
Thank you so much for figuring this out! I've been trying for days to figure out why my top level portion of the navbar had a white background on the "tabs". I used your trick to comment out the tabs part in the layout, and now its awesome!
http://www.exstressyourself.com
Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.
Note:
1. To add HTML CODE in comments then please use our HTML Encoder
2. You can always Test the tutorial on our HTML Editor
3. Please do not spam Spam comments will be deleted immediately upon our review.
Regards,
Mohammad