• Article Written 
  • on 09.07.2009
  •  at 12:40 PM
  •  by admin

Simple Verticale Menu Tutorial

This is a very simple, verticale css menu .This tutorial helps to create a simple and attractive CSS menu with a cool hover effect.

css-vertical-menu

Step : 1

First of all let us write CSS code for menu. here goes the code..

[code lang="css"]
#nav ul {
margin:0;
padding:0;
list-style-type:none;
}
[/code]

[code lang="css"]
#nav ul li {
display: inline; /*IE 6*/
}
[/code]

[code lang="css"]
#nav ul li a {
display:block;
background:#d9d9d9;
width:200px;
text-decoration:none;
padding:4px/*padding for top, bottom*/ 7px /*padding for left, right*/;
border-bottom:1px solid #eeeeee;
border-top:1px solid #cccccc;
border-left:5px solid #333333;
color:#333333;
[/code]

[code lang="css"]
#nav ul li a:hover {
border-left-color:#0099FF;
color:#0066FF;
background:#c4c4c4;
}
[/code]

Step : 2

Now we create a basic html structure.

[code lang="htmlstrict"]
 
[/code]

Yeah..! its done! see how simple is to create a CSS menu… A demo..?

Promote Us

  • Add to Mixx!
Ace Hosting India

Tags: ,