Quantcast
Channel: web-manual.net » facebook Like button
Viewing all articles
Browse latest Browse all 4

Adding Custom Navigation menu And Custom Drop Down Menu For Blogger

0
0

This tutorial deals with how to create Navigation menus and 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 : http://www.whowhenandhow.com/

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 > Layout > Add as Gadget
2. Select a HTML/JavaScript Widget just under the header and paste the following code inside it,

<div id=’wwhnavbar’>
<ul id=’wwhnav’>
<li>
<a href=’#'>Home</a>
</li>
<li>
<a href=’#'>About</a>
</li>
<li>
<a href=’#'>Contact</a>
</li>
<li>
<a href=’#'>Category</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 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 Template –> Edit HTML and search for ,
]]></b:skin>
4. Just above it paste the code below,

/*—– WWH Drop Down Menu —-*/

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

#wwhnav {
margin: 0;
padding: 0;
}
#wwhnav ul {
float: left;
list-style: none;
margin: 0;
padding: 0;
}
#wwhnav li {
list-style: none;
margin: 0;
padding: 0;
border-left:1px solid #333;
border-right:1px solid #333;
height:35px;
}
#wwhnav li a, #wwhnav li a:link, #wwhnav li a:visited {
color: #FFF;
display: block;
font:normal 12px Helvetica, sans-serif;
margin: 0;
padding: 9px 12px 10px 12px;
text-decoration: none;

}
#wwhnav li a:hover, #wwhnav li a:active {
background: #BF0100;
color: #FFF;
display: block;
text-decoration: none;
margin: 0;
padding: 9px 12px 10px 12px;

 

}
#wwhnav li {
float: left;
padding: 0;
}
#wwhnav li ul {
z-index: 9999;
position: absolute;
left: -999em;
height: auto;
width: 160px;
margin: 0;
padding: 0;
}
#wwhnav li ul a {
width: 140px;
}
#wwhnav li ul ul {
margin: -25px 0 0 161px;
}
#wwhnav li:hover ul ul, #wwhnav li:hover ul ul ul, #wwhnav li.sfhover ul ul, #wwhnav li.sfhover ul ul ul {
left: -999em;
}
#wwhnav li:hover ul, #wwhnav li li:hover ul, #wwhnav li li li:hover ul, #wwhnav li.sfhover ul, #wwhnav li li.sfhover ul, #wwhnav li li li.sfhover ul {
left: auto;
}
#wwhnav li:hover, #wwhnav li.sfhover {
position: static;
}
#wwhnav li li a, #wwhnav li li a:link, #wwhnav 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;

}
#wwhnav li li a:hover, #wwhnavli 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
5. Save your template and you are done!

The post Adding Custom Navigation menu And Custom Drop Down Menu For Blogger appeared first on web-manual.net.


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images