How To Make The Navigation Menu Bar On Blogspot (II)
>> Sunday, January 31, 2010
In How To Make The Navigation Menu Bar on Blogspot (I) we have discuss how to make the navigation links menu with simple HTML script. In this article we will learn how to make it more attractive with CSS.
To do so, besides displaying the menu links with the facilities of HTML/JavaScript Widget, first we must declare the CSS code for these links to set the appereance, than put this CSS in our HTML Template.
1. Simple Navigation Bar Menu.
Besides as we did in How To Make The Navigation Menu Bar on Blogspot (I) , we can create a simple navigation bar menu in the way below, although a bit busy because we have to declared the CSS Code first, but we can easily set the appereance later.
In your HTML Template (Dashboard > Layout > Edit HTML) insert this CSS between <head>...</head>, I suggest to put in under /*Header*/ or ]]></b:skin> to make it easy to remember.
#navbarmenu ul li{You can set the font size larger or smaller, you can also set the padding and the margin to set the space in between the word. If you want add a border around the word then you can set the border value at least 1 px. Don't forget to click Save Template.
font-size:100%;
list-style-type: none;
display:inline;
padding:0px;
margin:10px;
border:0px solid;
}
The next step is create the menu links list (as we did in How To Make The Navigation Menu Bar on Blogspot (I) but in a LIST form).
On your Dashboard > Layout > Page Elements, and click Add a Gadget on Header. and choose to add HTML/JavaScript.
<div id='navbarmenu'>
<ul>
<li><a href="URL of Your Home page">Home</a></li>
<li><a href="URL of Your Music page">Music</a></li>
<li><a href="URL of Your Books page">Books</a></li>
<li><a href="URL of Your Video page">Video</a></li>
<li><a href="URL of Your Profile page">About Me</a></li>
<li><a href="mailto:YOUR EMAIL ADDRESS">Contact</a></li>
</ul></div>
<a href="doit2us.blogspot.com">Home</a>
<a href="http://www.blogger.com/profile/07471629071890951823">About Me</a>
<a href="mailto:mc4tur@gmail.com">Contact</a>
a.newnavbar1{background:#333399;
font-size:100%;
list-style-type: none;
display:inline;
padding:3px;
color:#ffffff;
border:0px solid;
}
a.newnavbar2{
font-size:100%;
list-style-type: none;
display:inline;
background:#ff0000;
padding:3px;
color:#ffffff;
border:0px solid;
}
a.newnavbar3{
font-size:100%;
list-style-type: none;
display:inline;
background:#339966;
padding:3px;
color:#ffffff;
border:0px solid;
}
a.newnavbar4{
font-size:100%;
list-style-type: none;
display:inline;
background:#ff6600;
padding:3px;
color:#ffffff;
border:0px solid;
}
a.newnavbar5{And in the Column Content Configure HTML/JavaScript we make a modification by add script class="newnavbar1" for the first link (eg Home), Please match with the link you created.
font-size:100%;
list-style-type: none;
display:inline;
background:#cc99ff;
padding:3px;
color:#ffffff;
border:0px solid;
}
And in accordance with the setting in the CSS, then we should also write the link one by one just like in the simple HTML Links How To Make The Navigation Menu Bar on Blogspot (I)
<a href="URL of Your Home page" class="newnavbar1">Home</a>To make it more attractive, you can add a visited link and hover effect, for that you must add the following script below your CSS.
<a href="URL of Your Music page" class="newnavbar2">Music</a>
<a href="URL of Your Video page" class="newnavbar3">Video</a>
<a href="URL of Your Profile page" class="newnavbar4">About Me</a>
<a href="mailto:YOUR EMAIL ADDRESS" class="newnavbar5">Contact</a>
a.newnavbar1:hover, a.newnavbar2:hover, a.newnavbar3:hover, a.newnavbar4:hover, a.newnavbar5:hover {Click Save and try to view your colourful link..
background:#41a317;
color:#ffffff;
}
a.newnavbar1:visited, a.newnavbar2:visited, a.newnavbar3:visited, a.newnavbar4:visited, a.newnavbar5:visited {
color:#57e964;
}
Some people tend to choose a simple display. If you want to display your menu navigation bar background in one color only or even the same color with your background page, then you can use the CSS code in a list form like in the no. 1 above.
Here is an example of CSS script if we use the same background and just add a visited and hover effects.
#navbarmenu ul li{And we use the same step and the same HTML/JavaScript as in no.1. Simple Navigation Bar Menu.
font-size:100%;
list-style-type: none;
display:inline;
padding:0px;
margin:10px;
border:0px solid;
}
#navbarmenu li a{
color:#dfffed;
}
#navbarmenu li a:visited {
color: #57E964;
}
#newnavbar li a:hover {
color: #F88017;
background: #ffff66;
}