Sunday, July 3, 2011

How To Add Horizontal CSS Menu Bar For Blogger

0 comments
 This is cool drop down menu for your blogger.


Check the menubar

1. Log in to blogger account and Go to Design > Edit HTML

2. Put checked marked in Expand Widget Templates

3. Find this tag by using Ctrl+F    ]]></b:skin>

4. Paste below code Before ]]></b:skin> tag

/*NavBar --------------*/
#navbar{
width: 780px;
height: 48px;
overflow: hidden;
margin: 0px 0px 20px 0px;
padding: 0px;
}

.navbar-top{
width: 910px;
height: 9px;
overflow: hidden;
margin: 0px;
padding: 0px;

}

.navbar-bottom{
width: 910px;
height: 9px;
overflow: hidden;
margin: 0px;
padding: 0px;

}

.navbar-mid{
width: 910px;
height: 30px;
overflow: hidden;
margin: 0px;
padding: 0px;

background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJ0f11gUYDiUUetXOt2kEZ1RC7eJvXj2aDosC5fiQpsk60ElUVmNdPUPZ7l9ZM_05H3SiC5VctmmwhDIlQs9q7W0TJOwcgzqqT-F1Stf9O1Jb0nWLofIRmR1SJGYs_6LYrfnee54SE2SQ/s1600/black1.png);
}

.navbar-mid ul{
padding: 0px;
margin: 0px;
list-style-type: none;
display: inline;
}

.navbar-mid ul li{
height: 30px;
float: left;
padding: 0px;
margin: 0px;
display: inline;
border-left: 1px solid #292929;
border-right: 1px solid #555;
}

.navbar-mid ul li a:link, .navbar-mid ul li a:visited{
display: block;
margin: 0px;
padding: 8px 10px 8px 10px;
font-size: 11px;
font-weight: bold;
text-decoration: none;
text-transform: uppercase;
color: #FFFFFF;
}

.navbar-mid ul li a:hover{
font-color: #FFFFFF;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjikSworIytSdxh7facLTYUepmFiSp91IGBH6-xMgKorvPwhyphenhyphen8q5VGDYU8Cnl8EjjtJqf3rWO8qOaBI96cqQq25nfMqNYtdKGrFoq2bisaYPsp82Y2WeljzW5mhae4pHH1U6COaGCqHnM0/s320/hover.png);
}

.single-black-bar{
float: left;
width:1px;
height: 30px;
padding: 0px;
margin: 0px;
overflow: hidden;
background: #292929;
}

.navbar-mid ul li.current_page_item a:link, .navbar-mid ul li.current_page_item a:visited, .navbar-mid ul li.current_page_item a:hover {
display: block;
margin: 0px;
padding: 8px 10px 8px 10px;
font-size: 11px;
font-weight: bold;
text-decoration: none;
text-transform: uppercase;
color: #FFF;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQKqAagN3ylL2Uel7gsWfWP-nzkvp1KQHf6OlDYWj8_NZLKBJobvdK5qSjAN6a3pZyxEIQse9TrOX5EzL_Z2a9Sl-u4Em_C9lPD4MKSQS5dMVv23aTWjCv33IUGjC_KBk07w2hpE8m1dE/s320/black2.png);
}
/*Bloggertrix.com --------------*/

5. Now Go to Design >>page Element

6.Click Add gadget (under your header)  and Select HTML/JavaScript 

7. Now paste paste below code

<div id="navbar">
<div class="navbar-top">
</div>
<div class="navbar-mid">
<ul>
<li class="page_item">
<a href="Homepage URL" title="Home">Home</a>
</li>

<li class="page_item page-item-2"><a href="URL" title="About">About</a></li>
<li class="page_item page-item-18"><a href="URL" title="Contact">Contact</a></li>
<li class="page_item page-item-20"><a href="URL" title="Portfolio">Portfolio</a></li>
<li class="page_item page-item-22"><a href="URL" title="Make Money">Make Money</a></li>
<li class="page_item page-item-24"><a href="URL" title="Themes">Themes</a></li>
<li class="page_item page-item-26"><a href="URL" title="Comments">Comments</a></li>
<li class="page_item page-item-28"><a href="URL" title="Links">Links</a></li>
<li class="page_item page-item-30"><a href="URL" title="Forum">Forum</a></li><li class="page_item page-item-32"><a href="URL" title="Download">Download</a></li>
</ul>
<div class="single-black-bar">
</div>
</div>
<div class="navbar-bottom">
</div>
</div>

Replace URL With your URL
Replace Blue color words with any names you want to put as menu name.

8. Now save  HTML/JavaScript  
You are done.

Leave a Reply

Related Posts Plugin for WordPress, Blogger...