Css menu with HTML and CSS. This is a very useful and small dropdown menu without the use of javascript.
First, Layout the html code in body section of html page.
<ul id="menu">
<li>
<a href="">Home</a>
</li>
<li>
<a href="">About</a>
<ul>
<li>
<a href="">Me</a>
</li>
<li>
<a href="">Murali</a>
</li>
<li>
<a href="">Prashanth</a>
</li>
<!--<span class="hiddenSpellError" pre=""-->ul>
</li>
<li>
<a href="">Contact</a>
<ul>
<li>
<a href="">Email</a>
</li>
<li>
<a href="">Mobile</a>
</li>
<li>
<a href="">Letter</a>
</li>
<!--<span class="hiddenSpellError" pre=""-->ul>
</li>
<li>
<a href="">Gallery</a>
<ul>
<li>
<a href="">Photos</a>
</li>
<li>
<a href="">Videos</a>
</li>
<li>
<a href="">Albums</a>
</li>
</ul>
</li>
</ul>
Second, Add css style to ul and li
ul {
font-family: Arial, Verdana;
font-size: 14px;
margin: 0;
padding: 0;
list-style: none;
}
ul li {
display: block;
position: relative;
float: left;
}
li ul {
display: none;
}
ul li a {
display: block;
text-decoration: none;
color: #ffffff;
border-top: 1px solid #ffffff;
padding: 5px 15px 5px 15px;
background: #2C5463;
margin-left: 1px;
white-space: nowrap;
}
ul li a:hover {
background: #617F8A;
}
li:hover ul {
display: block;
position: absolute;
}
li:hover li {
float: none;
font-size: 11px;
}
li:hover a {
background: #617F8A;
}
li:hover li a:hover {
background: #95A9B1;
}

nice one thnx…
Great work on the blog. Keep it up.
@Greg Thnx