Friday, August 14, 2015

How to Create a Drop Down Menu in Blogger

Drop down menu or sub menu is very important for a blog or website. In this video tutorial you will learn how to create drop down menu in blogger.

                                                                                                                                                                                                                                                                                                                                     
Code : 

<!-- start navmenu -->
<ul id='cssnav'>
<li class="active"><a href='http://satunes4u.blogspot.com/'>Home</a></li>
<li class="sub"><a href=''>Menu-1</a>
<ul>
<li><a href=''>Submenu-1</a></li>
<li><a href=''>Submenu-2</a></li>
<li><a href=''>Submenu-3</a></li>
</ul>
</li>
<li><a href=''>Menu-2</a>
<ul>
<li><a href=''>Submenu-1</a></li>
<li><a href=''>Submenu-2</a></li>
<li><a href=''>Submenu-3</a></li>
<li><a href=''>Submenu-4</a></li>
</ul>
</li>
<li><a href=''>Menu-4</a>
<ul>
<li><a href=''>Submenu-1</a></li>
<li><a href=''>Submenu-2</a></li>
<li><a href=''>Submenu-3</a></li>
<li><a href=''>Submenu-4</a></li>
<li><a href=''>Submenu-5</a></li>
<li><a href=''>Submenu-6</a></li>
</ul></li>
<li><a href=''>Menu-5</a>
<ul>
<li><a href=''>Submenu-1</a></li>
<li><a href=''>Submenu-2</a></li>
<li><a href=''>Submenu-3</a></li>
</ul>
</li>
<li><a href=''>Menu-6</a>
</li></ul>

<!-- end navmenu -->





/* ----- CSS Nav Menu Styling ----- */
#cssnav {
margin: 0px 0 0 -10px;
padding: 0px 0px 0px 0px;
width: 1050px;  /* Set your width to fit your blog */
font: $(tabs.font); /* Template Designer - Change Font Type, Size, Etc */
color: $(tabs.text.color); /* Template Designer - Change Font Size */
}

#cssnav ul {
background: $(tabs.background.color) $(tabs.background.gradient) repeat-x scroll 0 -800px;
_background-image: none; /* Template Designer - Change Menu Background */
height: 20px; /* Change Height of Menu */
list-style: none;
margin: 0px;
padding: 0px;
}

#cssnav li {
float: left;
padding: 0px;
}

#cssnav li a {
background: $(tabs.background.color) $(tabs.background.gradient) repeat-x scroll 0 -800px;
_background-image: none; /* Template Designer - Change Menu Background */
display: block;
margin: 0px;
font: $(tabs.font); /* Template Designer - Change Font Type, Size, Etc */
text-decoration: none;
}

#cssnav > ul > li > a {
color: $(tabs.text.color); /* Template Designer - Change Font Color */
}

#cssnav ul ul a {
color: $(tabs.text.color); /* Template Designer - Change Color */
}

#cssnav li > a:hover, #cssnav ul li:hover {
color: $(tabs.selected.text.color); /* Template Designer - Change Font Color on Hover */
background-color: $(tabs.selected.background.color); /* Template Designer - Change Font Background on Hover */
text-decoration: none;
}

#cssnav li ul {
background: $(tabs.background.color) $(tabs.background.gradient) repeat-x scroll 0 -800px;
_background-image: none; /* Template Designer - Change Menu Background */
display: none;
height: auto;
padding: 0px;
margin: 0px;
position: absolute;
width: 200px; /* Change Width Of DropDown Menu */
z-index:9999;
}

#cssnav li:hover ul {
display: block;
}

#cssnav li li {
background: $(tabs.background.color) $(tabs.background.gradient) repeat-x scroll 0 -800px;
_background-image: none; /* Template Designer - Change Background */
display: block;
float: none;
margin: 0px;
padding: 0px;
width: 200px; /* Change Width Of DropDown Menu */
}

#cssnav li:hover li a {
background: $(tabs.selected.background.color); /* Template Designer - Change Background of Link on Hover */
}

#cssnav li ul a {
display: block;
height: auto;
margin: 0px;
padding: 10px;
text-align: left;
}

#cssnav li ul a:hover, #cssnav li ul li:hover > a {
color: $(tabs.selected.text.color); /* Template Designer - Change Text Color on Hover */
background-color: $(tabs.selected.background.color); /* Template Designer - Change Background on Hover */
border: 0px;
text-decoration: none;
}
 #blog-pager{clear:both;margin:30px auto;text-align:center; padding: 7px;}
.blog-pager {background: none;}
.displaypageNum a,.showpage a,.pagecurrent{font-size: 14px;padding: 5px 12px;margin-right:5px; color: #666; background-color:#eee;}
.displaypageNum a:hover,.showpage a:hover, .pagecurrent{background:#359BED;text-decoration:none;color: #fff;}
#blog-pager .pagecurrent{font-weight:bold;color: #fff;background:#359BED;}
 .showpageOf{display:none!important}
#blog-pager .pages{border:none;}

55 comments:

  1. Good Morning! It worked! I have a question. I already have a blog with a menu bar. It has many post, but it does not have a drop down menu. I would like to create a drop down menu bar, would I need to delete the menu bar and start over? Thank you again. Great video. It was very easy to follow!

    ReplyDelete
  2. Good Morning! It worked! I have a question. I already have a blog with a menu bar. It has many post, but it does not have a drop down menu. I would like to create a drop down menu bar, would I need to delete the menu bar and start over? Thank you again. Great video. It was very easy to follow!

    ReplyDelete
  3. it didn't show the dropdown list on my blog

    ReplyDelete
  4. Can you please tell me how can i make this list fit with mobile?
    meraimaan.blogspot.com

    ReplyDelete
  5. I have successfully created the drop down menu although, it's hard to see when you use it, which part of the code do I change to give the background a colour and not be transparent? Thanks!

    ReplyDelete
  6. thank you yar it work good.........

    ReplyDelete
  7. This tutorial is amazing! Thanks for the great coding. I've been trying to add a drop down menu to my blog for a couple of weeks and your tutorial is perfect.

    ReplyDelete
  8. how to post in menu bars related plzz tell me

    ReplyDelete
    Replies
    1. See this tutorial https://www.youtube.com/watch?v=JYfRkXMYmqg

      Delete
    2. how can i post under drop down menu bar???

      Delete
  9. This comment has been removed by the author.

    ReplyDelete
  10. Replies
    1. First, Carefully See the tutorial and try again, then tell me where is your problem. I'll back to you as soon as possible.

      Delete
  11. This was the best code I've found on the web. It worked great. This is what I was looking for. Thank you!

    ReplyDelete
  12. Hey, i successfully created the drop down menu... but how do i add content to the menu that has been created? When i click the submenus it doesnt open.. not even a blank page is opened. please help

    ReplyDelete
  13. It Partially worked for my blog ..when i added drop down menu..i have added 3 drop down menu and its showing only one ?? Where will be the problem

    ReplyDelete
    Replies
    1. I got the same problem here. Did you manage to fix it?

      Delete
    2. ActCually the problem is that in this drop down code, they have
      only wrote the style of the given menu and sub-menu...so if you
      add anything extra, there is no code and design for them...
      thats why there happen a problem in the drop down menu.

      Delete
  14. Thanks.Go drop down

    ReplyDelete
  15. Hi, if i want to put this on center or increase the lenght what code should i use?

    ReplyDelete
  16. Works really well but I am unsure of how to make the submenu's link to pages once selected? Please help :)

    ReplyDelete
  17. I followed the tutorial step by step, but my menu bar came out vertically instead of horizontally. What can be the problem?

    ReplyDelete
  18. Good job my bro please sub me

    ReplyDelete
  19. Replies
    1. Please kinldy help me guys. Why is not showing the sub-menu in my blog. All i copy the html code and css code above. Please advise. Thanks

      Delete
  20. It worked first
    but after changing theme it's not working

    ReplyDelete
  21. Hey! Thank you so much for the video and code. Great job. Can you tell me how i can remove bullets that appear before each menu name. Thankyou

    ReplyDelete
  22. When i pasted the CSS codes, the "Apply to Blog" button didn't work. Please, advice me what to do. Thanks

    ReplyDelete
    Replies
    1. after pasting the CSS then press space and the Apply button will work. visit my web page recreateducation.blogspot.com

      Delete
  23. can u help me to create menus inside sub menus or drop down menus

    ReplyDelete
  24. Thanks sir,
    Really you solve all my confusions.

    ReplyDelete
  25. Bro, many many Thanks
    Working this blog
    https://seosmmexpertsusa.blogspot.com/

    ReplyDelete
  26. sir the dropdown menu is not working
    sir can you say the solution

    ReplyDelete
  27. dont dropdown, only show menu in page

    ReplyDelete
  28. mr :dear bro
    thanks for this video.it great&good
    so change the sub menu bar background color ?
    please send the code for change sub menu bar background color

    your lovly
    aboobacker malappuram

    ReplyDelete
  29. HEHEHEHEHEH THIS IS REALLY WORK PLEASE SEE I MAKE DROPDOWN IN MY SITE - https://www.morepankh.com/

    ReplyDelete
  30. This article discusses the importance of this blog for business promotion. Buy tinder accounts Promoting a blog is just like promoting any other website and can be difficult to do if you are not sure what needs to be done, but with the right tips and tricks, this doesn't have to be. Hopefully, you find this article on this blog helpful and decide to visit the site below to see just what they are talking about.

    ReplyDelete
  31. Buy Twitter accounts This article is a guest post on the significance of this post and how important it is for business to post it on their websites. In this post we are going to discuss why it is important for businesses to post a sign up sheet and other important things that one should consider when making this big investment. When making a big investment such as this one is very important to consider all aspects and that is why it is important for business to make sure that they post this on their websites.Buy pinterest accounts For those who are not able to make this post or understand its importance you can always check this out at my blog for more information. Buy Instagram accounts

    ReplyDelete
  32. This comment has been removed by the author.

    ReplyDelete
  33. This comment has been removed by the author.

    ReplyDelete
  34. This is an awesome blog post by Tom Venuto. Buy gmail accounts In it he explains why the Obama Stimulus Package should be considering a "Good" debt relief plan. The Federal Stimulus Package, or so they say, is being pushed on all media outlets to pump up consumer confidence, which should start a recovery in the US economy, and make us once again a beacon on the world stage. Okay, so let's talk about this for second shall we? Yes, absolutely, and here's why:

    ReplyDelete
  35. Is it important for my business to have a blog? A lot of people are asking themselves this question when they are wondering why they should spend money on a blog for their business. Although it may seem a bit of an expense at first, you will be surprised at just how many returns you can get from investing in this sort of tool. In this article we will discuss some reasons why a blog is important for your business: buy facebook reviews

    ReplyDelete
  36. Buy yelp reviews permanent 5 star yelp reviews we provide 100 real USA UK profile, safe, legit or non drop yelp elite yelp reviews platform
    https://usareviewsteam.com/product/buy-yelp-reviews/

    ReplyDelete