You must Sign In to post a response.

How to change div ul li selected color

Hi!

I'm working asp.net application.

This is my vertical menu.
<div class="arrowsidemenu">
<div class="menuheaders">
<a href="#" title="WorkOrder">Work Order</a></div>
<ul class="menucontents">
<li class="selected"><a href="#1/">>> Work Order</a></li>
<li><a href="#2/">>> Scope of Works</a></li>
</ul>
</div>

I want show my ul li as RED color when it is selected using CSS...

How to do it?


Comments

Author: Ali Adravi08 May 2010 Member Level: Silver   Points : 2

Hi
There is no option to change the color of selected "li".
But you can do this for anchor tab by using a:active and a:current.

For more detail see the css for menu.

Thanks
Ali Adravi