Custom Search

Saturday, December 26, 2009

How To Add Top Navigation menu (Bar) To Blogger (blogspot)

how to add top navigation bar for a blogger template,
And through this tutorial you’ll know how to add a top navigation menu for your blogger’s very easy task, so let’s do it.

1. Add Css To Your Template
Go To your Blogger Dashboard, Layout >> Edit HTML >>
And find This code
And before it add next code.
padding: 3px 0;
margin-left: 0;
font: bold 12px Verdana;
border-bottom: 1px solid gray;
list-style-type: none;
text-align: left; /*set to left, center, or right to align the menu as desired*/

.basictab li{
display: inline;
margin: 0;

.basictab li a{
text-decoration: none;
padding: 3px 7px;
margin-right: 3px;
border: 1px solid gray;
border-bottom: none;
background-color: #f6ffd5;
color: #2d2b2b;

.basictab li a:visited{
color: #2d2b2b;

.basictab li a:hover{
background-color: #DBFF6C;
color: black;

.basictab li a:active{
color: black;

.basictab li.selected a{ /*selected tab effect*/
position: relative;
top: 1px;
padding-top: 4px;
background-color: #DBFF6C;
color: black;
that’s it, and now let’s add the menu it self to our template.
2. Add The Menu To Our Template
Go To your Blogger Dashboard, Layout >> Page Elements >>
and now above blog posts area, click add gadget,
Add top navigation menu for blogger template
And choose Add HTML/JavaScript
Leave the title empty and at the content area add this code
<ul class="basictab">
<li class="selected"><a href="">Home</a></li>
<li><a href="">Blogger Templates</a></li>
<li><a href="">Blogegr Tricks</a></li>
<li><a href="#">Edit</a></li>
<li><a href="#">Edit</a></li>
<li><a href="#">Edit</a></li>
<li><a href="#">Edit</a></li>
Now Click Save and check your blog,
3. Customize Your Menu
Now you have to change the menu links for your own links and titles, and you may want to change the menu colors as well.
3.1 Change The Menu Links
In step 2 you’ll find this words in the code
<li><a href="#">Edit</a></li>

change The symbol # to your link, and change the word Edit to your title.
you can repeat this part of code as you like,
every time you add this part of code again to your menu code, a new link will be added to your menu.
3.2 Change The Menu Colors
To change your menu colors you have to edit the css code in step 1 before you add it to your template. So Copy and past it in new text -notepad- file to edit it there.
We’ll use html Colors Code Generator to edit this menu colors.
in step one code find this codes and change it’s color codes to your favorite, you can grab your favorite color code here. html Colors Code Generator
To change the main background color.
background-color: #f6ffd5; 
and change f6ffd5 to your favorite color.
To change the selected and hover background color.
background-color: #DBFF6C; 
and change DBFF6C to your favorite color.
To change the text color
color: black;
and change black to #xxxxxx and xxxxxx should be your new color code
you are done, and you have got your own customized code, now use it as we used the code in step 1.

Anda Sudah Baca Yang Ini? :

0 komentar:

Klik Here To Show All Comment

Post a Comment

newer page older page home


Ad by