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.
<!-- 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;}
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;}
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!
ReplyDeleteGood 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!
ReplyDeleteCheck Add CSS code Properly
Deleteit didn't show the dropdown list on my blog
ReplyDeleteCheck Add CSS code Properly
DeleteCan you please tell me how can i make this list fit with mobile?
ReplyDeletemeraimaan.blogspot.com
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!
ReplyDeletethank you yar it work good.........
ReplyDeletewelcome !
Deletethe drop down didnt work
ReplyDeleteJust tell me where is the problem.
DeleteThis 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.
ReplyDeleteThanks for your complement !
Deletehow to post in menu bars related plzz tell me
ReplyDeleteSee this tutorial https://www.youtube.com/watch?v=JYfRkXMYmqg
Deletehow can i post under drop down menu bar???
DeleteThis comment has been removed by the author.
ReplyDeletedid'nt work on my blog.. plzz replay
ReplyDeleteFirst, Carefully See the tutorial and try again, then tell me where is your problem. I'll back to you as soon as possible.
Deleteyou are welcome!
ReplyDeleteThis was the best code I've found on the web. It worked great. This is what I was looking for. Thank you!
ReplyDeleteHey, 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
ReplyDeleteIt 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
ReplyDeleteI got the same problem here. Did you manage to fix it?
Deletesame here
DeleteActCually the problem is that in this drop down code, they have
Deleteonly 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.
Thanks.Go drop down
ReplyDeleteHi, if i want to put this on center or increase the lenght what code should i use?
ReplyDeleteদারুন
ReplyDeleteWorks really well but I am unsure of how to make the submenu's link to pages once selected? Please help :)
ReplyDeleteI followed the tutorial step by step, but my menu bar came out vertically instead of horizontally. What can be the problem?
ReplyDeleteGood job my bro please sub me
ReplyDeleteThis comment has been removed by the author.
ReplyDeletePlease 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
DeleteWaaaao! I works. Thanks a lot bro.
ReplyDeleteIt worked first
ReplyDeletebut after changing theme it's not working
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
ReplyDeletethanks
ReplyDeleteWhen i pasted the CSS codes, the "Apply to Blog" button didn't work. Please, advice me what to do. Thanks
ReplyDeleteafter pasting the CSS then press space and the Apply button will work. visit my web page recreateducation.blogspot.com
Deletecan u help me to create menus inside sub menus or drop down menus
ReplyDeleteThanks sir,
ReplyDeleteReally you solve all my confusions.
Bro, many many Thanks
ReplyDeleteWorking this blog
https://seosmmexpertsusa.blogspot.com/
sir the dropdown menu is not working
ReplyDeletesir can you say the solution
dont dropdown, only show menu in page
ReplyDeletemr :dear bro
ReplyDeletethanks 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
Thanks brother
ReplyDeleteHEHEHEHEHEH THIS IS REALLY WORK PLEASE SEE I MAKE DROPDOWN IN MY SITE - https://www.morepankh.com/
ReplyDeleteThis 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.
ReplyDeleteBuy 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
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis 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:
ReplyDeleteIs 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
ReplyDeleteBuy yelp reviews permanent 5 star yelp reviews we provide 100 real USA UK profile, safe, legit or non drop yelp elite yelp reviews platform
ReplyDeletehttps://usareviewsteam.com/product/buy-yelp-reviews/