Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET CSS Style
Dear Friends,
 
Am facing problem with Menu.
 
I have created a website in asp.net c# and used Css , style sheets.
 
my requirement is, when i select particular page from menu..MOUSE OVER Should stay on that particular page. so that user can understand that he is on this page.
 
This is my style sheet css
 
.green #slatenav
{position:relative;
 display:block;
 height:42px;
 font-size:12px;
 font-weight:bold;
 width:50%;
 background-color:#EFCC00;
font-family:Arial,Verdana,Helvitica,sans-serif;
top:0px;
left: 520px;
width:570px;
}
 
.green #slatenav ul{margin:0px;padding:0;list-style-type:none;width:auto; }
.green #slatenav ul li{display:block;float:left;margin:0 1px 10px 8px;}
.green #slatenav ul li a{display:block;float:left;color:#197E46;text-decoration:none;padding:14px 10px 0 10px;height:28px;
                       
 -moz-border-radius:20px;}
 
.green #slatenav ul li a:hover,.green #slatenav ul li a.current
{color:#fff;background:transparent url(images/greenslate_backgroundOVER.gif) no-repeat top center;}
 

This is my master page.
=========================
 
<div>
 
   <div class="green">
   <div id="slatenav">
   <ul>
    <li><a href="Home.aspx" onclick="Home_Click"><span>Home</span></a></li>
 

                 <li><a href="AboutUs.aspx" onclick="AboutUs_Click"><span>AboutUs</span></a></li>
 
                 <li><a href="OurVision.aspx" onclick="Our Vision_Click"><span> OurVision</span></a></li>
 
               <li><a href="OurMission.aspx" onclick="OurMission.aspx_Click"><span>Our Mission</span></a></li>
 
                <li><a href="ContactUs.aspx" onclick="ContactUs_Click" ><span>Contact Us</span></a></li>
 
                  
   </ul>
   </div>
   </div>
   </div>
 

So, please help me, If i Mouse over on this pages, it must stay mouse over till the user goes for another page.
 
Thanks in Advance...................
Posted 29-Oct-12 0:45am

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

  Print Answers RSS
0 OriginalGriff 304
1 Sergey Alexandrovich Kryukov 255
2 Shweta N Mishra 216
3 Maciej Los 210
4 PIEBALDconsult 184
0 OriginalGriff 7,660
1 Sergey Alexandrovich Kryukov 7,072
2 DamithSL 5,586
3 Manas Bhardwaj 4,946
4 Maciej Los 4,665


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 29 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100