Log in

View Full Version : Menu with "Sticky" Selection



Kimstahnke
08-13-2007, 06:51 AM
Being almost a newbie to css styled menus I am trying to figure out how to get the selection in a menu to keep being selected when the user clicks somewhere else with the mouse.
Can anyone enlighten me on this?
Kind Regards
Kim

joshrodgers
08-13-2007, 07:44 AM
Where did you get the css or do you have an example or some css you can post? Thanks,

Josh Rodgers

Kimstahnke
08-13-2007, 08:17 AM
I have borrowed from various css-example-sites and this is my current:

#navcontainer
{
margin: 0;
padding: 0;
height: 22px;
font: 11px Verdana, sans-serif;
width: 100%;
list-style-type: none;
background: #fff;
}

#navlist li
{
float: left;
margin: 0;
padding-right: 20px;
width: auto;
display: block;
}

#navlist li a, #navlist li a:link
{
background: #fff;
color: #555;
text-decoration: none;
padding: 3px 5px 3px 5px;
display: block;
}

#navlist li a:hover
{
color: #000;
border-bottom: 3px solid #bbb;
cursor: pointer;
background: #eee;
}