1.Login to your blogger dashboard--> layout- -> Edit HTML
2.Scroll down to where you see </head> tag .
3.Copy below code and paste it just before the </head> tag.
<style type='text/css'>
#nav {
width:100%;
margin-left:-40px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQyYh6F-iGqfYK33txC2wXnv0qRfKCNrydy_dQG-uQuyvcMgjyqbmpxChGOBiOTFCBwFoiALliYI3IUr-4ORkShx4gtnVZk8wU2cBoUyGolWhDZ3T-ToOkDYEyLe9UCNYiK1zXlOs-gsTo/) repeat-x;
}
#nav li {
float: left;
display: block;
}
#nav li a {
float: left;
display: block;
padding: 12px 18px 12px 18px;
text-transform: uppercase;
text-decoration:none;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ6v3rziH5t4VoLESx35vxMsE2Q5V0D7NNyKkBU-aej1phiF4ETlN6lp19NM0QyahqWmxarM6_hw27LlGPizR6vrlP9XCr63Z_qXtTLRoy4lDMS1XUF26vv_f2fiC6PhJriMce0NytD9qy/) no-repeat top right;
color:#ffffff;
}
#nav li a:hover {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ6v3rziH5t4VoLESx35vxMsE2Q5V0D7NNyKkBU-aej1phiF4ETlN6lp19NM0QyahqWmxarM6_hw27LlGPizR6vrlP9XCr63Z_qXtTLRoy4lDMS1XUF26vv_f2fiC6PhJriMce0NytD9qy/) no-repeat right -40px;
color:#ffffff;
text-decoration:none;
}
ul#nav li.current_page_item a, ul#nav li.current-cat a {
color: #fff;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ6v3rziH5t4VoLESx35vxMsE2Q5V0D7NNyKkBU-aej1phiF4ETlN6lp19NM0QyahqWmxarM6_hw27LlGPizR6vrlP9XCr63Z_qXtTLRoy4lDMS1XUF26vv_f2fiC6PhJriMce0NytD9qy/) no-repeat right -80px;
}
#nav li ul {
display: none;
}
</style>
Note : Host mainbg.jpg and navi-bg.jpg images yourself.
4.Now save your template.
5.Go to Layout-->Page Elements and click on "Add a gadget".
6.Select "html/java script" and add the code given below and click save.
<ul id="nav">
<li class="current_page_item"><a href="#">Home</a></li>
<li><a href="#" title="#">HTML</a></li>
<li><a href="#" title="#">CSS</a></li>
<li><a href="#" title="#">PHP</a></li>
<li><a href="#" title="#">MySQL</a></li>
<li><a href="#" title="#">About</a></li>
<li><a href="#" title="#">Contact</a></li>
</ul>
<div class="clear"></div>
You are done.
Demo
0 comments:
Post a Comment