<div class="WhiteLink"><asp:HyperLink id="homeLink" runat="server" > HOME </asp:HyperLink></div> --------------------- This was my div... .WhiteLink a:link{color:#FFFFFF} .WhiteLink a:visited{color:#FFFFFF} .WhiteLink a:active{color:#FFFFFF} .WhiteLink a:hover{color:#FFFFFF; text-decoration:underline} ----------------------------- This was my css... I do not know how to do the asp:HyperLink change its color when I am "hover" it? Some Ideas? Thanks a lot
.WhiteLink a:link{color:#FFFFFF} .WhiteLink a:visited{color:#FFFFFF} .WhiteLink a:hover{color:#ffa; text-decoration:underline} .WhiteLink a:active{color:#FFFFFF} Code (markup): Note the order of the selectors: link, visited, hover and active. cheers, gary
It does not make a difference , I think is because there is no <a> tag, instead there is an <asp:Hyperlink>...
In the output the browser sees? Is your script not being parsed by the server? The output of any server side script should be valid html. Or, I guess IE and IE alone will work with it as a client side script, like javascript. If the latter is the case, junk it. cheers, gary
Hi Spyder, a hyperlink control is compiled into a normal a href when it goes in a browser, but for the hyperlink control, theres a property called CssClass, so your code would be <asp:HyperLink id="homelink" CssClass="whitelink" runat="server">