Build Online Store! | Penguin Panda Series - New! | 4 Rules To Make Money | SEO Settings | Facebook Popup 1, 2, 3 | Mashable 1 , 2


Saturday, July 2, 2011

Create a Drop Down Menu In Blogger


Pin It

If you wish to add the same menu to Blogger Template Designer templates then read this post -> Custom Drop Down menu


image

Why do you run after scripts such as jquery while you can use simple CSS and HTML to create beautiful drop down menus for your blog. I already shared a list of 30 Navigation menus and now you need to learn how to create a drop down menu in a navigation. I am sharing a simple code here that can be fully customize to make your preferred changes. So lets get to work!


Live Demo


How To Create a Drop Down Menu?

A drop down menu is needed when you have too much content on your blog or you love keeping things organized. To add a drop down menu to your blogger blogs do this:

  1. Go To Blogger > Design > Page Elements
  2. Select a HTML/JavaScript Widget just under the header and paste the following code inside it,

drop down menu

<div id='mbtnavbar'>
      <ul id='mbtnav'>
        <li>
          <a href='#'>Home</a>
        </li>
        <li>
          <a href='#'>About</a>
       </li>
        <li>
          <a href='#'>Contact</a>
        </li>
  <li>
           <a href='#'>Sitemap</a>

            <ul>
                <li><a href='#'>Sub Page #1</a></li>
                <li><a href='#'>Sub Page #2</a></li>
                <li><a href='#'>Sub Page #3</a></li>
              </ul>

        </li>

      </ul>
    </div>

Replace # with your Page Links and the bolded text with relevant page names. The yellow highlighted code is responsible for the drop down menu. You can copy and paste it under any tab you want just before </li>

To add another tab just paste this code above </ul>

<li>
          <a href='#'>Tab Name</a>
        </li>
       

    3.   Now Go to Design > Edit HTML

    4.   Backup your template and search for ,

]]></b:skin>

     3.   Just above it paste the code below,

/*----- MBT Drop Down Menu ----*/


#mbtnavbar {
    background: #060505;
    width: 960px;
    color: #FFF;
        margin: 0px;
        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:35px;
}
#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;
}

Make these changes:

  • Change #060505 to change background color of the Main menu
  • Change  the yellow highlighted text to change font color, size and family
  • Change #BF0100 to change the background of a tab on mouse hover
  • Change #BF0100 to change the background color of the drop down menu
  • Change #060505 to change the background color of drop down menu on mouse hover

      4.    Save your template and you are done!

 

Visit your Blogs to see a beautiful Navigation menu just below Header. Have Fun! :)

If you have any questions feel free to post them.


If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you Subscribe to our regular Email Updates!

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 »


Thanks for making this possible! Kindly Bookmark and Share it.
Technorati Digg This Stumble Facebook Twitter

174 comments:

Comment Page :
Hetal Patil Rawat on 8:46 AM, July 02, 2011 said... #

Thanks, i was waiting for this.

Mohammad Mustafa Ahmedzai on 7:06 PM, July 02, 2011 said... #

@Hetal

I am really pleased that you liked it hetal :)

Meg on 9:35 PM, July 03, 2011 said... #
This comment has been removed by the author.
Meg on 10:16 PM, July 03, 2011 said... #
This comment has been removed by the author.
Mohammad Mustafa Ahmedzai on 1:24 AM, July 04, 2011 said... #

@Meg

Meg I am sorry but I could not get your first question. Could you kindly share the blog link where you are applying this menu? I can be more helpful if you do provide the link of your test blog

Meg on 1:43 AM, July 04, 2011 said... #
This comment has been removed by the author.
Mohammad Mustafa Ahmedzai on 2:00 AM, July 04, 2011 said... #

@MEG

Give me 5 minutes I will write the code for you.

Mohammad Mustafa Ahmedzai on 2:23 AM, July 04, 2011 said... #

MEG I have tested the code and found that the blogger template Watermark that you are using has the Style code by default which is overiding the CSS code for this drop down menu. I have created a new code and will write a post on it within hours so that even other blogger may find it helpful. You can see the demo here ->
http://facebook-comments-box.blogspot.com/

Meg on 2:27 AM, July 04, 2011 said... #
This comment has been removed by the author.
Mohammad Mustafa Ahmedzai on 3:09 AM, July 04, 2011 said... #

@Meg

You are welcomed. Post published. You can read it here -> http://www.mybloggertricks.com/2011/07/add-custom-drop-down-menu-to-templates.html

ohmyachesandpains.info on 6:15 PM, July 04, 2011 said... #

I was able to apply this to the Simple template in Blogger and modify it a bit to match my needs. But for the life of my I can't get it to stretch the entire length of my header. Any thoughts as to what I am doing incorrectly?

http://www.ohmyachesandpains.info

Mohammad Mustafa Ahmedzai on 2:52 AM, July 05, 2011 said... #

@ohmyachesandpains

No problem. In the first part of the CSS code in step#3 change the width from this

#mbtnavbar {
background: #060505;
width: 960px;
color: #FFF;
margin: 0px;
padding: 0;
position: relative;
border-top:0px solid #960100;
height:35px;

}



to this


#mbtnavbar {
background: #060505;
width: 100%;
color: #FFF;
margin: 0px;
padding: 0;
position: relative;
border-top:0px solid #960100;
height:35px;

}

ohmyachesandpains.info on 5:32 PM, July 05, 2011 said... #

@Mohammad Mustafa Ahmedzai

I made the change but I didn't seem to work. Anything else I should try?

So Many Obsessions ~ Amanda on 11:04 PM, July 06, 2011 said... #

Thank you SOOO much!! I tried other tutorials but yours is the BEST! And the only one I could get to work. I didn't even scream in the process lol.

Can you tell me how to get rid of the little white line that runs down the left side of the drop-down? Or how to make it appear all the way down for all of them? It only appears on the second and third lines of the 'Sitemap' box.

Here's my url: http://peachysavinglab.blogspot.com/

Mohammad Mustafa Ahmedzai on 12:38 AM, July 07, 2011 said... #

@ohmy
Please read this post -> http://www.mybloggertricks.com/2011/07/add-custom-drop-down-menu-to-templates.html


@Amanda

You are always welcomed pal. The solutions to all your questions are on this page ->
http://www.mybloggertricks.com/2011/07/add-custom-drop-down-menu-to-templates.html

FROID on 8:19 PM, July 07, 2011 said... #

YO, i followed the directions perfectly and everything worked out, except there is no drop down...my site is www.freshrespect.blogspot.com. you will see that i have the basic blogger pages on the top but I am in the works of replacing them with your tabs. so i started, and i added subpages to both Album reviews and the truth (the truth, before was sitemap already had 3 sub pages and they never showed up either)....whats the deal????

Roger Newcomb on 3:00 AM, July 11, 2011 said... #

For some reason when I paste in the mbt menu code and save it, it converts the links to entirely lowercase. And then blogger doesn't recognize the URL. Can you help? http://welovesoaps.net

maddy on 2:55 PM, July 15, 2011 said... #

Awesome blog! i got to learn about someone new info from this article..Thanks for sharing!

Menu Templates

alex on 9:03 PM, July 17, 2011 said... #

Hi Mohammad, thank you so much for posting such a helpful tutorial. It was just what I was looking for. I have one problem, when I scroll over the drop down menu (to click on a page) it disappears before I can click it! Is there something in josh's original code (I am using the Simple template) that is overriding your code? I have followed the steps on your tutorial about this but it is not working. Am I doing something wrong? Any help you can give me would be greatly appreciated. Many thanks, Alex.

alex on 9:03 PM, July 17, 2011 said... #

my blog is http://www.bettycox.blogspot.com by the way, if that helps.

alex on 10:52 PM, July 17, 2011 said... #

i have now managed to get it to work but only when the font for my menu bar is at 12px or less. any bigger and the drop down menu disappears. is this a height problem? do i need to adjust the size of the body of my blog? sorry for all the questions, i'm just so confused, i've been trying all day to fix it. :(

Jess on 10:22 PM, July 18, 2011 said... #

Thank you so very much for posting this! Your tutorial was quite easy to understand, and so helpful! I just have one question (which probably has a very simple answer)...how do I get the text in my drop down menu to be center aligned? I have tried - with my limited knowledge - to change the code on my own, but nothing seems to work! Any help would be much appreciated. Thank you! Jess.

Ren on 8:01 AM, July 24, 2011 said... #

I was able to get this to work great on my blog! However, I was curious, is there a way to add a sub page to one of the sub pages? Sorry if that's confusing I couldn't think of another way to ask. Thanks for the great tutorial. =)

shahbaz on 6:18 PM, July 31, 2011 said... #

great article

visit:
http://internetricks4u.blogspot.com/

KuroNeko** on 5:17 AM, August 07, 2011 said... #
This comment has been removed by the author.
KuroNeko** on 5:35 AM, August 07, 2011 said... #
This comment has been removed by the author.
Manuel Garcia PH on 7:00 PM, August 07, 2011 said... #

Hello, Can you help me with my blog?

I try so many codes to use on the html gadget just to have that drop down menu. but it did't work. maybe i was wrong with the div class or ul class. Here's my blog: http://photoshopph.blogspot.com/

and here's the code for my navigation:
.ddsmoothmenu {
margin-top: 6px;
float: left;
border-right: 1px solid #2F2F2F;
}

.ddsmoothmenu ul li {
float: left;
}

.ddsmoothmenu ul li a{
display: block;
color: #ccc;
text-decoration: none;
border-left: 1px solid #2F2F2F;
height: 42px;
line-height: 42px;
text-transform: uppercase;
font-size: 11px;
padding: 0 12px;
}

.ddsmoothmenu ul li a:hover {
color: #FFFFFF;
background: url(http://lh4.ggpht.com/_Kwwy9VyLMKw/TGxGXjQNYWI/AAAAAAAADSA/yRGz_PBg9cA/bk_top_hover.png) 50% 0 no-repeat;
}

Mohammad Mustafa Ahmedzai on 11:47 PM, August 07, 2011 said... #

@Manuel

Your code has sub CSS classes missing that perfectly aligns the body of your navigation menu. I would advise that you use the drop down menu above and customize it so that it may blend your blog.

Manuel Garcia PH on 1:40 PM, August 08, 2011 said... #

@Mohammad Mustafa Ahmedzai

So i will replace that code using the code you gave above ???

Misty on 1:07 AM, August 10, 2011 said... #

The 1st item in my drop down list covers the original category in the navigation bar. Suggestions?
www.template13.blogspot.com

VIGNAT on 2:07 PM, August 11, 2011 said... #

vignaat.blogspot.com

no background color

swordleaves on 8:35 PM, August 17, 2011 said... #

sir i'm again i'dd use your code drop down but i got the error when i click save template. it said html 3 not accepted.Thanks for the code Your so genius...

swordleaves on 8:36 PM, August 17, 2011 said... #

my site www.armasector.blogspot.com

prithi on 12:41 AM, August 20, 2011 said... #

Hi, Thank you very much for your tutorial! It was a great help. I'm also trying to add a vertical scroll bar to my dropdown menu (the submenu has over 20 items!) Any idea how it can be done?

Chompoo on 1:52 PM, August 25, 2011 said... #

hi may i know how to center the alignment for the menubar?

Mohammad Mustafa Ahmedzai on 3:54 PM, August 25, 2011 said... #

@Manuel
yes I mean just remove the code in your template and use this one.

@swordleaves
I checked your blog and I guess I am too late to reply because you already solved the problem. :d

@Prithi

For a vertical scroll down kindly read this post: http://www.mybloggertricks.com/2011/07/create-drop-down-menu-in-facebook-style.html

@chompoo

Enclode the menu code between these two additional tags,

<center>
ADD MENU CODE HERE
</center>

Nouman Ahmed on 8:02 PM, August 25, 2011 said... #

can u tell me what to write in page links

Bob on 7:54 PM, August 26, 2011 said... #

Unfortunately, it didn't work for me. All I got was the text of the tabs and subtabs printed on the screen. No actual tabs. Nothing to drop down.

Thanks

Otobong on 12:41 AM, August 28, 2011 said... #

THanks! It works fine. thats what am using now on my blog www.deluxetrick.blogspot.com

Chompoo on 12:37 PM, August 29, 2011 said... #

Thanks! that worked. just one more thing.. its fine on the main page however, when its in other pages, the tabs will be behind the pictures... may i know how to solve that?

eg. http://www.voguechompoo.com/search/label/outer

M at Hidden Valley Simplicity on 7:32 PM, September 05, 2011 said... #

Thank you SOOO much! I've tried 5 different tutorials and finally, this one works! Yay!

Angelo on 1:59 PM, September 06, 2011 said... #
This comment has been removed by the author.
Angelo on 2:14 PM, September 06, 2011 said... #
This comment has been removed by the author.
fyamma on 1:50 PM, September 12, 2011 said... #
This comment has been removed by the author.
Angelo on 4:05 PM, September 12, 2011 said... #

Hey one more thing, I can't align the twitter follow button (javascript) horizontally. Please help me with this...
I need help asap! Thanks!

preview my blog @ http://www.win7extremeblog.info

iTechie World on 6:25 PM, September 12, 2011 said... #

very good topic.........!!!!!


It solve my problem.

TFS

i'll share it.

Sangram Nandkhile on 2:34 AM, September 27, 2011 said... #

Hi Mohammad bro,

Is it possible to create drop down for the sites like apple.com ?
Apples navigational bar looks very elegant and classy. Currently i am trying to create new and diffeent drop downs.

I have created Green Nature Theme drop Down but i am not able to change its size on li hover block.
Green Nature Drop Down Theme

Have a look and let me know what can be done.

Jenny Wren on 3:20 AM, September 29, 2011 said... #
This comment has been removed by the author.
Mushtaq ahmad on 12:01 AM, October 03, 2011 said... #

hi
it is very useful tutorial
i apply on my blog but there is a problem in the drop down list it missing two pages it always show just one page in the drop down menu
second there is a space before 'home' page
plzz solve it
this is my blog
http://crescentcollection.blogspot.com/

AwSnap Scan on 4:40 AM, October 12, 2011 said... #

thanks a lot dude..its works great..

Buddy Lee on 3:49 PM, October 14, 2011 said... #

hey ! i very like your drop menu , but in my site it need to be more right, how i can do it?

Thank you!

Nagant on 7:56 PM, October 19, 2011 said... #

Hi

This is an excellent article thanks! I'm stuck though trying to find the code to make the menu drop down in a straight line? It seems to be slightly to the right below the main tabs when it expands?

Please let me know thanks!

Tammy Flowers on 2:53 AM, October 20, 2011 said... #

Fabulously simple to follow!!! Thank you, this was exactly what I was looking for!

K-planet on 7:52 PM, October 24, 2011 said... #
This comment has been removed by the author.
K-planet on 7:54 PM, October 24, 2011 said... #
This comment has been removed by the author.
Kate on 7:20 AM, October 26, 2011 said... #

First of all, I'd like to say what a great and useful tutorial this is!
Second, Argh! I am getting annoyed at the fact that the first time I did the menu, it worked great. I kept changing the colors and fonts and sizes. Then when I went to my blog, There was about a centimeter space between the actual tab and it's menu. Then I couldn't even put my mouse on one of the links in the menu because it would dissapear once I moved my mouse off the tab. HELP!
thanks!!!!!!!!!!!!!!

Louisville Wedding on 6:15 AM, November 01, 2011 said... #

Thank you so much!! I finally have a drop-down menu! It was hard at first, but i got so used to it and it became so easy!!!!

Tok Latiff Mawar Nurullah on 8:16 AM, November 03, 2011 said... #

As salam Mohammad,

Thank for your drop list. I need your assistance how to link my blog label to my drop down list. If i link to my page it's work fine. http://amz-eli.blogspot.com/

Your assistance is much apprecaite.
Regards Hamzah

Michelle on 5:57 AM, November 07, 2011 said... #

Hello:)
This worked perfectly except on thing: The drop down menu dissapear before i manage to klick on the drop down's. Something to be fixed? :)Please help me..

Beside that I am so happy the drop down menu is on place. Thank you:)
My homepage is http://kennelrunaway.blogspot.com

bajwasaab on 6:01 PM, November 09, 2011 said... #

bro mere kaam nai kar raha eh method

thelocalproduction on 11:59 AM, November 11, 2011 said... #

I was wondering do you need extra code to make a secondary submenu drop down that would come out of the side of the first submenu.

SQUARE MANGO SOLUTIONS on 1:00 PM, November 15, 2011 said... #

hi bro this is shoaib

a am not bale to change background color of main menu wats might be the probs plzz give ma a solution soon...

www.findmyshoppe.in

L.A.H on 2:13 AM, November 16, 2011 said... #

HI, WHY I COULDN'T PUT THE MOUSE ON THE NEXT PAGES OF DROP DOWN MENU. THANKS

ceejay on 12:23 PM, November 19, 2011 said... #

Hey i have been looking for this simple trick to add a drop down menu on my blogs. Am going to try them and report back to you. Beside you evaluate my blogs here
http://hotnigerianews.blogspot.com blog for mobile phones and PC.
And my blog on Education News.
http://freebrowsinglink.blogspot.com

am i doing anything wrong with this blogs?

BGSA on 4:42 AM, November 20, 2011 said... #

Thank you for the tips! Very useful. I'd like to change the tabs background colours when hovering over them, and the drop down menu colours. I read your advice :
Make these changes:

Change #060505 to change background color of the Main menu
Change the yellow highlighted text to change font color, size and family
Change #BF0100 to change the background of a tab on mouse hover
Change #BF0100 to change the background color of the drop down menu
Change #060505 to change the background color of drop down menu on mouse hover


BUT, what do I actually change? The number? I want green instead of red.

Thanks for your help!

DerekCLK on 2:05 PM, November 23, 2011 said... #

Good day, I tried many times and i m very sure i followed all the instruction, but the drop down failed :( please help me...

derekclk-loyaltyprogram.blogspot.com

apschool.tk on 9:10 PM, November 30, 2011 said... #

Hi sir This Code is best working for Firefox and Chrome but it is not working in Explorer
Could you please guide how to make it perfect in explorer also
With regards
MD. ZAKIR ALI

kfudge on 5:59 PM, December 02, 2011 said... #

Menu Code works great in Google Chrome and Firefox. However, it does not work with Internet Explorer. Drop down menu portions fall behind my Blogger post. Any suggestions on how to avert this problem. If I can resolve this issue, it will be a great resource.
Testing this code on a music blog site for our school: http://musicfsa.blogspot.com/

kfudge on 6:55 AM, December 05, 2011 said... #

Still wondering if anyone has been experiencing same problem as above using this menu in Internet Explorer?

Keith

Rabindra Lamsal on 6:28 PM, December 10, 2011 said... #

Thanks for sharing this..I used this on my blog..
http://www.rlamsal.com.np

My child on 2:47 AM, December 12, 2011 said... #

thanks alot but I have one problem, when I scroll over the drop down menu (to click on a page) it disappears before I can click it also the drop down list is not in the center... any suggestions plz

My child on 2:50 AM, December 12, 2011 said... #

my blog is
http://ibnee.blogspot.com
thanks

My child on 2:55 AM, December 12, 2011 said... #

thank you so much . It. I have one problem, when I scroll over the drop down menu (to click on a page) it disappears before I can click it also the list is not centered >>any suggestions
my blog:
http://ibnee.blogspot.com

Lisha Yost on 1:14 AM, December 13, 2011 said... #

Hello Mohammad. Thank you for that lovely post on how to make a drop down menu on blogger! Awesome. However, I too, like others who commented here, am having the problem on internet explorere. The drop down menu goes behind the blog text and when you try to click on one of the drop down options, it disappears. Any help,please? thanks so much! If you need to see what's happening, my blog is at http://onlinemoneytrip.blogspot.com"

~Lisha

Omosco on 1:01 PM, December 15, 2011 said... #

Thanks,this is great,i simply love it.
It works well on my blog at
http://www.freebrowsingtime.blogspot.com,the christmas snow is falling,this is great.all thanks to you.

salman hassan on 9:36 PM, December 15, 2011 said... #

friends koye mujy bataya ga menu may posting kasay karni hay?

Boutique Model Galoré on 1:15 AM, December 22, 2011 said... #

I tried doing this over and over, and I still can not get it.. Is there anyway you can possibly do this for me on my blog, and I'll give you the info as to what to write on the drop down tabs?

Gdogd7 on 12:11 AM, December 24, 2011 said... #

I posted the code correctly but for some reason there is no drop down. Can you please help? Here is the code:
/*----- MBT Drop Down Menu ----*/

#mbtnavbar {
background: #544e15;
width: 960px;
color: #FFF;
margin: 0px;
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:35px;
}
#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;
}
]]>

VDM van der Munnik on 4:22 AM, December 25, 2011 said... #

Tried it and if it worked it would be very cool. When the drop down menu expands it is covered by the main page. Check out http://www.theblogtipper.com to see what I'm talking about.

Madara on 9:32 PM, January 04, 2012 said... #

Hello,
I tried this code for my blog: http://vickie-book-goddess.blogspot.com/
For starters it worked however when I changed colours I could't press drop down menus option any more. When I placed mouse over drop down it just vanished and can't be clicked. Please help! )=

HASSAN ELYAS on 5:41 PM, January 05, 2012 said... #

hello,
i just created my new blog about android stuff , but after i did everything the options are just there ..please help me ...
here is my blog http://androidcop.blogspot.com/

please help me

palanathu on 6:22 PM, January 05, 2012 said... #

can i have multiple dropdown with this script

HASSAN ELYAS on 7:35 PM, January 05, 2012 said... #

thank you soooooooooooo much admin ! jazakallah ! u rock ! amazing .thank you ...can u just tell me how to stretch the tabs bar because its very short ..please tell me ... - here is my blog
www.androidcop.blogspot.com

HASSAN ELYAS on 4:10 PM, January 06, 2012 said... #

hello admin , assalamalaikum, i m very thankful to you :) thank you for this wonderful blog ... please tell me how to arrange this tab in my blog because its not in its perfect place ..how should i move it ?

marloysa on 7:58 PM, January 06, 2012 said... #

I really like your site. Thank you for sharing your knowlegde :) peace

Igli Ferati on 2:45 AM, January 15, 2012 said... #

great page but can ia put informations in this pages?

Muni on 1:42 AM, January 16, 2012 said... #

I can't get navigation bar to have more than one subject on the drop down menu..not sure why this is happening, I've tried re-doing the whole thing but nothing changed. Help please! :) All the tabs work such as 'Home' and 'About', but only the first tab on the drop down menu shows up for each (only Sub Page #1's)

Muni on 1:43 AM, January 16, 2012 said... #

I can't get navigation bar to have more than one subject on the drop down menu..not sure why this is happening, I've tried re-doing the whole thing but nothing changed. Help please! :) All the tabs work such as 'Home' and 'About', but only the first tab on the drop down menu shows up for each (only Sub Page #1's)

Pamie on 12:50 AM, January 17, 2012 said... #

thanks for this bro..however, I can't make it align with the banner..can you help me with this?

AAL

Redge on 1:02 PM, January 17, 2012 said... #

Mohammad, I've already applied this in my blog. But how would I know that my post will be linked with my drop down menu? Please advise. Thanks....

Pamie on 10:59 PM, January 17, 2012 said... #

Thanks for the tutorial though, the drop down menu works fine..

Mavic on 9:54 PM, January 24, 2012 said... #

Hi, Thank you for this easy-to-follow instructions. However, the link on my drop down menu directs to a blank page. here's my blog url: http://merelyforpersonalsatisfaction.blogspot.com

Again, thank you and I hope you can help me solve my problem with drop down menus.

Mavic

Miguel on 4:42 PM, January 25, 2012 said... #

hi good day.

Mohammad, this info is very uiseful however, when you click the menu and sub-menu its empty. How come?

Please help me.

Miguel on 4:44 PM, January 25, 2012 said... #

this is my blog www.phtvnews.blogspot.com.

New Songs Everyday on 11:47 AM, January 27, 2012 said... #

my css drop down menu not working properly.. plz check n do help.
http://newsongseveryday.blogspot.com/

Dim.Siozos---SeaSpinning,net on 2:19 PM, January 28, 2012 said... #

Hi friend.
I really pray that you will help me...

I have a blog, the www.seaspinning.net
If you visit it, you will see a drop down menu.

The problem is that it does not work on IE, no matter the edition.
I use the IE9 and the problem still exists. The menu works only with FF.

Is there a solution?

Please help...

Sayed Sani on 12:56 PM, February 01, 2012 said... #

Bro when i copied it above ..skin it appeared on the top of navigation bar..what wrong? http://semetahealth.blogspot.com

krishna on 1:47 PM, February 02, 2012 said... #

should i specify my head with navbar or can i use that code mtbnav directly?

krishna on 1:59 PM, February 02, 2012 said... #

it is showing
Warning: Your new template does not include the following widgets:

HTML6
Would you like to keep these widgets on your blog or delete them?
Deleting widgets cannot be undone.

krishna on 2:02 PM, February 02, 2012 said... #

when i used that code to get drop down menu in edit html after saving the changes it is saying
Warning: Your new template does not include the following widgets:

HTML6
Would you like to keep these widgets on your blog or delete them?
Deleting widgets cannot be undone.
need reply plz

Deepak Bagwari on 12:39 PM, February 03, 2012 said... #

can u please help me ?
this code is not working properly for my blog ?
what should i do now ?
this drop down shown as horizontal not vertical on my blog
blog -www.kedarnath-dham.blogspot.com

Lena on 6:35 AM, February 04, 2012 said... #

I have a question and maybe you can help....the header of my blog got pushed up and is covering the navigation bar on blogger. It is also getting cut off a little because somehow is got pushed up...anyway you could help me bring it back down?? http://www.madebylena.com/ you can look at it for yourself and help me figure out to fix it (possibly). Thanks so much!!!

harinder paul on 10:55 AM, February 06, 2012 said... #

HELLO MOHHAMAD..
YOU ARE GUD BLOGGING TEACHER..
ACTUALLY I HAVE FOUND A BLOGGING DROP DOWN MENU
WHICH IS VERY INTERSESTING
BUT THERE IS SOME PROBLEM IN THAT IT GOES AT BACKSIDE OF BLOG POST BODY.
YOU CAN CHECK IT PLEASE AND GIVE ME THE SOLUTION..
HERE ISITS LINK
http://www.allblogtools.com/tricks-and-hacks/add-beautiful-drop-down-menu-for-blogger/

Kalyani on 10:04 AM, February 07, 2012 said... #

Nice work !
I have tried this, but the submenu (under one particular tab appear side by side, and not one below the other.).. pls help !

Reymund Oliva on 1:14 PM, February 07, 2012 said... #

hi, i try this tricks, but it doesn;t work for may simple template. i dont know whats the problem.. and also i try ur read more link it doesn't work also, i nid to edit my post and do jump break.. can you help me

funnsms on 8:46 AM, February 08, 2012 said... #

I Replaced # with my site links...But its not navigating to those link :(

Mjv1 on 12:23 PM, February 15, 2012 said... #

hi.this drop menu work well.but asking how to allign center the page tab?thanks

Sneha &amp; Bhavna on 5:17 PM, February 18, 2012 said... #

Hi, I am a new blogger in the process of editing the customised template..there is a menu already present in the template but how can i attach a page to the particular menu..b'coz when you click on a particular menu it says "page not found in the blog"...plz help me...

A . Mohamed Ileeyas on 4:14 PM, February 19, 2012 said... #

Nice Post More Free blog Templates Visit here http://www.amditechnology.com/2011/10/blog-templates.html

arhamvhy on 12:35 PM, February 20, 2012 said... #

I have some problem with this..

please help me..

Vincent Haryadi on 1:50 PM, February 20, 2012 said... #

@Hetal Patil Rawat

Mr mohammad, when I use this in my blog, the menu is like go right, I mean like have a border than not on right position. ASAP thx

Vincent Haryadi on 2:07 PM, February 20, 2012 said... #

can you fix the menu scripts? please... because the menu is going to right, the dropdown is fine, the problem is just is too big, how I change it? ASAP and thx, reply in email vincentvendeta@gmail.com

varoon singh on 9:06 AM, February 25, 2012 said... #

nice way of explaining the things, i have used this method to put a drop down menu on my blog.

www.licbombay.blogspot.com


thank you very much for uploading this bit of thing.

kesepian37 on 8:21 PM, February 28, 2012 said... #

thank you so much ... this really make me happy, at the end i can make it too like other people. May i ask one question ? How to connected my post to the menu ? i really new in blog and want to be better.
Thank you for help and greeting from Bali Island.

Alam

Anunimi on 4:54 AM, February 29, 2012 said... #

Hi, I like your dropdown menu very much, I am trying to add it to my blog. I have installed it on my mac with a Safari browser. It works great, except when I test it on internet explorer the drop down menu does not work properly. It cuts off the dropdown in the middle. It seems to be a z index issue with IE. I have worked on this for hours and tried everything I know how. Can you please help me to fix this. Thank you in advance.

Anunimi on 4:58 AM, February 29, 2012 said... #

almost forgot. my blog adress is www.testingmenu.blogspot.com

Wahana Informatika &amp; Komputer on 11:37 AM, February 29, 2012 said... #

I tried them, but sub menu covered by the blog skin
can you tell me what my mistake? thank's

nubentay uno on 4:39 PM, March 01, 2012 said... #

thanks i made it!


http://nubentayuno.blogspot.com/

Petra on 10:56 AM, March 03, 2012 said... #

Thanks, it worked like a charm on my test blog! Now if I could only figure out how to center it (or even right-align it). I've tried to enclose menu code with the 'center' tag in the HTML/java widget and it only moved slightly over, but did not center. What could be keeping it from centering? Thank you!

SAMI GET DRUG INFO on 8:21 AM, March 04, 2012 said... #

More than one widget was found with id: Navbar1. Widget IDs should be unique.

THIS IS THE ERROR I GOT IT WHEN I USE THIS CODE
WHAT CAN I DO

Smart on 2:07 AM, March 06, 2012 said... #

Hi
I created the menu and i want to thank you for helping me with your articles.
But i would like to know how to list more than one article in the same category.
For example in one of the tabs i want to have three of my blog posts shown and not only one. As the blog grows more posts should appear when a visitor clicks on one of the tabs. How can i make this happen? I hope i was clear.
Thanks in advance.
PS. In order to help u create a clear idea on what i am asking for i will post my blog url as well.
http://ekonomiashqiptare.blogspot.com/

Playground Snoop on 4:42 AM, March 07, 2012 said... #

I don't understand what happened, I tried to install my blog from a backed up template and now my drop down menu tabs don't work. Any idea what is going wrong?

http://www.calgaryplaygroundreview.com

TwittOff on 7:39 AM, March 09, 2012 said... #

I am getting ready to give this drop down menu a place of dishonor in my new blog the "bloggerJunkYard.blogspot.com which will debuting soon. One question though Is this menu fixable cross browser or not, that is the question I put to you before I go ahead. thanks

Maduel on 7:29 PM, March 10, 2012 said... #

i've used this drop down menu on my blog but it appears only in the homepage, how can i see the menu in all the pages?

Michael and Becca on 9:00 PM, March 10, 2012 said... #

Hi, I used this and it worked great, except for one thing...It took away the photo I was using as my background. The photo still shows up on the top of the page, but from the menu down, it's all white. Is there a way to keep my picture as the background and still use this code? Thanks so much. I know absolutely nothing about computers/blogs, but you explained this really well.

sastraremaja11 on 4:40 PM, March 11, 2012 said... #

Very nice. i get information for my blog. visit back to my blog.

കാസിം തങ്ങള്‍ on 1:23 PM, March 12, 2012 said... #

It is very usefull Sir. is there any method to create sub menu for dorp down menu ?

xamportal.com on 7:00 PM, March 12, 2012 said... #

sir,
thank you very much..
this is working fantastic on my blog!!

M. Murphy on 12:16 AM, March 13, 2012 said... #

Hello Mohammad, I am running into the problem where my drop down is cut off by the post matting. It only has room to show one drop down on a list that has three. I tried changing the Width: 960px to 100% but that did not work.

My site (Which is my test site) is http://addressmthl.blogspot.com/

Can you help?

bLurd on 2:29 PM, March 14, 2012 said... #

it works like a charm! thanks for this info!
Check it out: http://blurredfaqs.blogspot.com/

Ken-zoo on 10:56 AM, March 16, 2012 said... #

hello sir .. I want to add drop down menu on my blog. but I want DROB down menu is still stuck on the monitor screen. So the menu will not come up when I scroll down on my blog .. essentially create a menu like on FB but the drop down menu. Can you help me / maybe you can check my blog: while I have made ​​but for his DROB down can not be .. instructions please sir. This blog url I
http://ken-zoo.blogspot.com

Bri on 11:12 AM, March 16, 2012 said... #

Ain't working - no submenu shows

Kristin on 10:37 AM, March 17, 2012 said... #

Wow! Awesome tutorial! Easy to follow and a sinch to modify A+++ Thanks Mohammad!

Abeed on 4:20 PM, March 17, 2012 said... #

hello sir i am a new blogger, i tried your drop down menu bar and it worked nicely except one thing that the drop down shows the tabs horizontally instead of vertical. Thanks

Mohammad Mustafa Ahmedzai on 8:09 PM, March 17, 2012 said... #

@M. Murphy

For 100% width you will have to add the menu right inside your template and not inside a widget. Go To blogger > Design > Edit HTML and paste the code in step#2 below </header>

It will work just perfect. :)


@kenzoo

You can do that by adding position:fixed; just inside

#mbtnavbar {
background: #060505;
width: 960px;
color: #FFF;
margin: 0px;
padding: 0;
position: relative;
border-top:0px solid #960100;
height:35px;

}

@abeed

I guess you are looking for these: Horizontal navigation menus

:)

Angel Quintana on 7:12 AM, March 18, 2012 said... #

how to do send my my navigation links to another website, outside of my blog?

Angel Quintana on 7:13 AM, March 18, 2012 said... #

also, here is my website, www.lifeaccordingtoangel.com (as you can see all the links on the bag bar don't work properly. i have tried everything. please advise. :)

Rahul maurya on 3:09 AM, March 20, 2012 said... #

hey mohammad i want to refer you to a add network with my reffral if you are interested then
think about it .it gives really ad like google add if you register with my reffrall i earn some money so if yu consider it if you like
https://publisher.smowtion.com/users/signup/rahulmauryaemail

Martin Zeus on 7:35 AM, March 24, 2012 said... #

Thank you very much very usefull info and hepled me a lot but i have only one problem left how to make thoose pages sub pages active
HOW TO POST IN THEM ?

Please help thank you

KBI Report on 4:34 AM, March 26, 2012 said... #

Wow... Fantastic... check My Blog. Looking gr8. Thanks Mohammad.

arhamvhy on 8:46 AM, March 26, 2012 said... #

I have some problem with it..

Nabil Ansari on 10:30 PM, March 26, 2012 said... #

The titles that are appearing in the sub pages of my drop down menu are somewhat cutted after applying this code. You can check it out here "http://onlinehealthandfitnes.blogspot.in"
Please help me with this problem ASAP....

M. Murphy on 12:00 AM, March 27, 2012 said... #
This comment has been removed by the author.
M. Murphy on 12:02 AM, March 27, 2012 said... #

Hey Mohammad, Thank you for the help before it worked just fine, however when I use IE the drop downs are covered and disappear when you try and hover over them. I know that there is a constant problem with IE when it comes to Drop down menus, what possible solution is there to fix this problem. http://addressmthl.blogspot.com/#

Ranjan Pnkj on 4:02 PM, March 28, 2012 said... #

Just one word sir..... Thank you....

Daniyal @ SDHacks on 7:16 PM, March 30, 2012 said... #

very nice drop down menu i am using this drop down menu on my PC Tips and Tricks blog
nice sharing
Download PC Games

Cobus on 6:37 PM, April 01, 2012 said... #

Hi, thanks, great menu. plz help, the drop down gets cut off by the content under it, and is it possible to put the menu under my header, and if possible how? my blog: http://pcgamingshack.blogspot.com.br/
thanks again

Anshu Chopra on 9:16 PM, April 04, 2012 said... #

I MA NOT GETTING THE ABOVE MENU BAR IN THE MIDDLE.....PLEASE DO TELL.MY BLOG IS http://tecsac.blogspot.in/

rht on 2:16 PM, April 06, 2012 said... #

Aussome technology.Reall enjoy it.But it gives complcated errors sometime bxyr

Lindsey on 2:57 AM, April 08, 2012 said... #

Thank you for your great tutorial. For some reason I cannot figure out how to put my drop down menu below my header. It won't allow me to add a gadget directly below the header. My drop down menu is currently on my sidebar. How do I get my drop down menu below the header from my sidebar? You can see what i'm talking about on my blog: janeylanephotography.blogspot.com

Thanks!
Lindsey

Rachel Lewis on 6:04 AM, April 08, 2012 said... #

Thank you for this wonderful tutorial! I would like to add some clarifications as I hope they might help some other bloggers working with the NEW UPDATED blogger interface;

1. Go to Blogger, "Your Blog"'s Editing Page, Layout.
2. Click "Add a Gadget" where you want your Navigation bar to be, then select the "HTML/Javascript" widget. Paste the code into the main box, the title is irrelevant, it just helps you organize your page elements on the Layout page.

The rest of the steps were very clear. Thank you again!

Rachel Lewis on 6:10 AM, April 08, 2012 said... #

@Lindsey You need to go to your Layout page, and drag and drop the gadget you added in this tutorial to the place on the page you want it to be. In the old blogger interface you get to this page by going to Blogger > Design > Page Elements. In the new blogger interface you go to Blogger > Your Blog's Editing Page > Layout. Hope this helps!
PS: You might have to play around a little bit with how/where you are dragging the widget to. For some reason it can be a bit finicky with the area under the title. The best spot I find to drag it to is just above your "Blog Posts" gadget, right in the center, then move it up until it goes full page width.

android-tweak on 2:01 PM, April 08, 2012 said... #

hello sir please help me
i m using drop down menu code from http://ddmguide.blogspot.in/
but there is a little problem i m facing
my drop down menu is hiding behind the blogpost content in IE7+

i did every step he mention


please take a look sir plz plz plz plz bahijan madad kar do

shahbaz on 9:36 PM, April 09, 2012 said... #

why there is gap between my header image and menu,my post and menu....?
see my blog

http://fokatworld.blogspot.in/

plzz correct the error....:)

Lindsey on 11:44 PM, April 10, 2012 said... #

@Rachel Lewis

Thank you so much for your help! I got it to move up there. My next question is now that I have moved it I try to hover over "locations" and start to go down on the drop down menu and they disappear. It happens with "categories" as well. What have I done wrong? And how do I make a post appear under those categories? Sorry this is all new to me. :) Thanks for your help!

Rachel Lewis on 2:29 AM, April 11, 2012 said... #

@Lindsey You're welcome! I had this problem too, I am using this code;
http://www.mybloggertricks.com/2011/07/add-custom-drop-down-menu-to-templates.html
rather than the one listed above. The way I fixed it was to remove;
"height:34px;"
under the section
"#mbtnav li"
but if you are using the code on this page it is;
"height:35px;"
under the same section;
"#mbtnav li"
NOT "#mbtnavbar"

I am not up to scratch on my CSS so I'm not entirely sure why this worked (I removed it for a different reason - my titles were too long) so remove at your own risk!

Akshay Rana on 4:47 PM, April 15, 2012 said... #

It worked soo beautifully. I knew HTML so i edited the entire code and made it look so professional like blogger.

See here www.techytk.blogspot.in

Practice on 12:27 AM, April 18, 2012 said... #

Hi,
I tried using this code and was able to get a drop down menu bar. I followed your instructions and tried to change the background color on the menu bar (from #060505) to the color of my choice. AFter i saved this, it didn't didn't change the color of the menu bar.

Also, how I decrease the width of the menu bar and the surrounding border? When I decreased the width from 900-something (what you originally set) to 800 pixels, I still had a gray border that was hanging out.

Thank you for your help.

Press Play on 1:21 PM, April 18, 2012 said... #
This comment has been removed by the author.
Emmas Channel on 5:55 PM, April 18, 2012 said... #

Hi I've got a problem. I followed the instructions and it showed the dropdown menu and all that and I configured it a little. However it was right over on the right and after some messing around couldn't get it to work so decided to restore the layout from the code backed up before I changed anything.

Now, blogger thinks that the pages are installed but they aren't there, and the pages app hasnt been installed on the layout so I can't change it.

Nikola Krstić on 10:24 PM, April 19, 2012 said... #

How can menu be on the left side not on top?
link is http://osas-edu.blogspot.com/
Thanks in advance!

sophieshiatsu on 10:27 AM, April 20, 2012 said... #
This comment has been removed by the author.
TalkSpice on 9:03 PM, April 22, 2012 said... #

i added this code in my blog. How can i go beyond 2 sub menus? the control is not going beyond to sub menus. it shows on the list but i am not able to click that option. please reply

Seasidepostonline on 10:54 PM, April 22, 2012 said... #

I have tried adding drop down to my main folders but they don't seem to drop down they don't end up in a folder as a sub folder. It just puts more folder on bar what am I doing wrong?

Manashree on 8:50 AM, April 27, 2012 said... #

hi Mohammad,

Well, I could create the drop down menu with a readymade template. But, I have a different problem. How do I write or add content on those pages? If I create a page on blogger, it doesn't get listed under the sub menu. Please help, please..... :'(

Regards,
Manashree

Avinash Saikia on 9:44 PM, April 27, 2012 said... #
This comment has been removed by the author.
Avinash Saikia on 9:48 PM, April 27, 2012 said... #

This is really a very reputed and helpful website.I really liked it but i also have a query to you.With my great request,i want your help.

My problem:-I cannot use these tutorials in a good theme,it can be only used in the blogger themes which are default provided by blogger.And secondly,as i want to blog about different kinds of sports.I want pages parenting which is been provided by you very nicely,means example(Cricket-ICC,IPl)in 1 tab i want such 2or more to look in in order to go to the page by clicking but the pages which i create in blogger i had to publish it as i cannot hide it all comes together in a row whereas it looks unsystematic after using your content too and i cannot keep in draft too as linkinking cant be done from there.

Hope for reply sir.
My blog:- http://sportzgravity.blogspot.in/

yoez store on 6:55 PM, April 30, 2012 said... #

Thank You Bro..

Farhan Mukhi on 1:13 PM, May 02, 2012 said... #

Submenu Tree provides a method for structuring content hierarchically. For content, which has a menu link, Submenu Tree displays a list of content, which is at the same level or below the content in the menu.



http://www.handycss.com/css-menus/creating-menu-with-sub-menu-below/

admin on 12:26 PM, May 03, 2012 said... #

Hi sir

copy exactly the code but the drop down submenu does't work.
please help!

http://logospublications.blogspot.com/#

Achmad Taufik on 7:12 PM, May 07, 2012 said... #

Thank you, css code & html code work in my blog.

JonLee on 3:10 AM, May 10, 2012 said... #

Mohammad,
Thanks so much for the code, this is exactly what I was looking to add to my blog.

I do have one small issue however, if you have the time would you mind taking a look at my page's dropdown bar and look at the an unattractive page break that exists on the drop down menu items:
"The Dental Admissions Test" and "Dental School"?

Everything else is perfect except that one small issue.

Again, Thanks for the code!

Best,
Jon

Arau Blogger on 9:19 AM, May 12, 2012 said... #

THANKS MOHAMAD FOR THIS AWESOME ENTRY

Christine Reitzel on 10:58 PM, May 16, 2012 said... #

Hi Mohammad,

Thank you for the help! However, I can't seem to center my navigation bar. I tried the other tricks mentioned above but I've had no luck. http://peacewithinyoga.blogspot.com

Any help is appreciated!

Confused? Feel free to ask

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

 

Recent Posts

Join Me On Facebook

8600+ Followers

Join The Team!

Licensed Under CC

Recent Comments

Follow Me On Twitter

2601+ Followers

My Blogger Tricks (MBT) © 2012. All Rights Reserved | Contact |