Log in

View Full Version : :: CSS Horizontal hover menu



emanuelle
10-31-2010, 07:41 AM
http://www.dynamicdrive.com/dynamicindex1/hover.htm

how can I create a class for selected state. Will look like hover but will be the selected one

thank you

Nile
10-31-2010, 03:38 PM
Change:


.hovermenu ul li a:hover, .hovermenu ul li a.active{
background-color: #FFE271;
border-style: outset;
}

Add the highlighted.
Then in the link add the class active:


<li><a href="http://www.dynamicdrive.com" class="active">Dynamic Drive</a></li>