How To Create a Drop Down Menu In Blogger

image 








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!

7 comments:

  1. IT IS A GREAT POST BUT WHEN I CLICK ON MY SUB LINKS IT IS NOT APPEAR IN THAT PAGE
    http://allyouneeds11.blogspot.com/
    UNDER SOFTWARE CLICK ON THE MULTIMEDIA WHEN IT GOES TO MULTIMEDIA THE MENU IS NOT APPEAR IN THAT PAGE

    ReplyDelete
  2. the one thing problem is how to put my article...?

    ReplyDelete
  3. I think i can help you out. To put your article - i mean i am saying when you click the drop down menu, you can see your article.

    In every menu. You have href = #. the # is only the url you want to link.

    About

    For example: you want to link a post in your blog to the drop down menu.
    The url of the post is www.test.blogspot.in/2013/12-04-12.

    To link this url. You need to copy /2013/12-04-12 to #.[not www.test.blogspot.in/2013/12-04-12 the whole thing].

    So the link will be About. So that when you click about, you can see your desired article.

    Hope i helped. Be a friend to me. Search Callie Spring on google+.

    ReplyDelete
  4. I cannot see the sub pages when I put this into my blog :(

    ReplyDelete
  5. your site is good and very helpful.the great information
    HOW TO REMOVE THE BLOGGER COMMENT BOX FROM BLOGGER PAGES.in this our site have many tools are available the Know about the backlinks of your website

    ReplyDelete
  6. WiFi Password Hacker Software & Apps License Key are the excellent software used to hack wifi and crack your password. It allows you to hack passwords. It provides a complete realization for any wifi connection that seems incredible to you.
    Adobe Indesign License Key 2021
    FL Studio License Key
    Manycam License Key

    ReplyDelete
  7. Serato DJ Registration Key software specialists announce the Serato example. This is a sampling plugin, which aims to achieve the speed and lightness of a typical DJ working environment within a full-fledged workstation.
    Free Netflix Premium Pro Keygen Crack
    DDMF Vst Plugins
    Miracle Box Crack For Mac

    ReplyDelete