Click here to Skip to main content
15,893,486 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I have a horizontal menu control in a master page. on clicking the menu control the menu item should be of the hover color but after cilcking the tab color change back to the default color.

thank you
Posted
Comments
[no name] 24-May-14 8:19am    
Did you maybe forget to ask some sort of a question or describe a problem with the code that you have written?

try this.. :)

CSS
.Menu
       {
           color: Blue;
           width: 50px;
       }
       .Menu:hover
       {
           color: Red;
           width: 50px;
       }
       .Menu:active
       {
           color: Yellow;
           width: 50px;
       }


HTML
<div>
     <nav>
         <ul>
         <li id="lnkHome" class="Menu">Home</li>
         <li id="lnkAbount" class="Menu">Abount</li>
          <li id="lnkContact" class="Menu">ContactUs</li>
         </ul>
      </nav>
 </div>


I have created jsfiddle for you
see this.. :)[^]
 
Share this answer
 
i did it using
C#
Session
and
C#
foreach(MenuItem M1 in M1.Items)
{
}

Loop
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900