Spiga

How to Create Vertical Menu ?

blueprev

 

We have learned how to create horizontal menu before. Now we will try to make a vertical menu. We will make a vertical menu like the image. Ok let's do it

 

 

1. Login to blogger then choose "Layout-->Edit HTML"

2. Put the script below before this code ]]></b:skin> or put it in CSS code area.



.glossymenu, .glossymenu li ul{
list-style-type: none;
margin: 0;
padding: 0;
width: 185px; /*WIDTH OF MAIN MENU ITEMS*/
border: 1px solid black;
}
.glossymenu li{
position: relative;
}
.glossymenu li a{
background: white url('http://blog.superinhost.com/vertical/blue1.gif') repeat-x bottom left;
font: bold 12px Verdana, Helvetica, sans-serif;
color: white;
display: block;
width: auto;
padding: 5px 0;
padding-left: 10px;
text-decoration: none;
}
.glossymenu li ul{
position: absolute;
width: 190px;
left: 0;
top: 0;
display: none;
}
.glossymenu li ul li{
float: left;
}
.glossymenu li ul a{
width: 180px;
}
.glossymenu li a:visited, .glossymenu li a:active{
color: white;
}
.glossymenu li a:hover{
background-image: url('http://blog.superinhost.com/vertical/blue2.gif');
}

* html .glossymenu li { float: left; height: 1%; }
* html .glossymenu li a { height: 1%; }

 

You can change the menu color, look at the red text (blue1.gif and blue2.gif). Change it with some color menu below. For example, if you want to choose red color, then the code would be like this :

 

.glossymenu li a{
background: white url('http://blog.superinhost.com/vertical/red.gif') repeat-x bottom left;

 

Then.

.glossymenu li a:hover{
background-image: url('http://blog.superinhost.com/vertical/red.gif');

 

Vertical Menu Color :

 

blueprev

 

 

blue1.gif

blue2.gif

blackprev

black1.gif

black2.gif



greenprev

green1.gif

green2.gif

pinkprev

pink1.gif

pink2.gif

redprev

red1.gif

red2.gif

 

3. Save your template.
4. Then go to "Page Elements" menu
5. choose "Add a Gadget -->HTML/JavaScript" the insert the code below.

 

<ul id="verticalmenu" class="glossymenu">
<li><a href="/">Home</a></li>
<li><a href="Bikini Tube'>Bikini Tube'>http://bikinitube.blogspot.com">Bikini Tube</a></li>
<li><a href="Celebrites Proe'>Celebrites Proe'>http://celebritiespro.blogspot.com">Celebrites Pro</a></li>
<li><a href=http://onlinemoneyxtreme.blogspot.com >Free Template</a></li>
</ul>

 

Note :
- The red code is the links.
- The Blue code is anchor text.
- If you want to add menu, just copy the blink code and paste it.
6. Then click "Save"

Related Posts by Categories



0 comments:

Post a Comment

Add to: Mr. Wong Add to: Webnews Add to: Icio Add to: Oneview Add to: Yigg Add to: Linkarena Add to: Digg Add to: Del.icoi.us Add to: Reddit Add to: Simpy Add to: StumbleUpon Add to: Slashdot Add to: Netscape Add to: Furl Add to: Yahoo Add to: Blogmarks Add to: Diigo Add to: Technorati Add to: Newsvine Add to: Blinkbits Add to: Ma.Gnolia Add to: Smarking Add to: Netvouz Add to: Folkd Add to: Spurl Add to: Google Add to: Blinklist Information