greetings all, I'm trying to make a sidebar navigation using ul and li tags, and structurally it works fine, but I cannot seem to get one of the list items to appear "selected" so that it displays in a different color from the rest of the menu. Here's basically how it's laid out:
<div id="navigation">
<ul>
<li class="selected"><a href="link1.aspx">link 1</a></li>
<li><a href="link2.aspx"link 2</a></li>
<li><a href="link3.aspx">link 3</a></li>
</ul>
</div>
and here's the css that goes with it
#navigation ul
{
list-style: none;
margin: 0;
padding: 0;
}
#navigation ul li
{
background:url(images/rowBackSmall.gif) no-repeat;
color: #FFFFFF;
}
#navigation li a
{
font-size: 10px;
line-height: 16px;
display: inline;
background-image:url(images/rowBackSmallB_Normal.gif);
padding-left: 10px;
background-position:left;
background-repeat:no-repeat;
text-decoration: none;
color: #FFF;
}
li.selected a
{
font-size: 10px;
line-height: 16px;
display: inline;
background-image:url(images/rowBackSmallB_Event.gif);
padding-left: 10px;
background-position:left;
background-repeat:no-repeat;
text-decoration: none;
color: #0099cc;
}
#navigation li a:hover
{
padding-left: 10px;
background-image:url(images/rowBackSmallB_Event.gif);
background-position:left;
background-repeat:no-repeat;
color: #0099cc;
text-decoration: underline;
}
no matter what I try, all the links render the same color, white. How do I override the individual .selected so that it renders differently?
thanks!