Avatar of Peter Chan
Peter Chan
Flag for Hong Kong asked on

Way to have hovering effect

Hi,
I want to have hovering effect (have deep color when mouse is on top of the Linkbutton). What to adjust below?
<body>
    <form id="main_form" runat="server">
    <div class="content" id="wrapper">
    <table width="100%">
        <tr>
            <td align="right" style="ForeColor:#0A2757;">
            <asp:LinkButton ID="lb_reg" 
                Text = "Register"
               CssClass="lb_reg"
               Font-Names="Times New Roman" 
               Font-Size="10pt" 
               OnClick="lb_reg_Click" 
               runat="server"/>
               &nbsp;|&nbsp; 
               <asp:LinkButton ID="lb_log" 
               Text = "Login"
               CssClass="lb_log"
               Forecolor="#0A2757"
               Font-Names="Times New Roman" 
               Font-Size="10pt" 
               OnClick="lb_log_Click" 
               runat="server"/>
               &nbsp;|&nbsp; 
               <asp:LinkButton ID="lb_supp" 
               Text = "Support"
               CssClass="lb_log"
               Forecolor="#0A2757"
               Font-Names="Times New Roman" 
               Font-Size="10pt" 
               OnClick="lb_supp_Click" 
               runat="server"/>
            </td>
        </tr>
        ...
            .lb_reg{
                color: black;
                top: 30px;
                left: 1075px;
                width: 36px;
                height: 30px;
                font-size: large;
                font-weight: bold;
                text-decoration: none;
            }  
            .lb_reg:hover{
                background-color: black !important;
                color: white !important;
            }  
            .lb_log{
            color:#000!important;
            top: 30px;
            left: 1130px;
            width: 36px;
            height: 30px;
            font-size:large;
            font-weight:bold;
            }  

Open in new window

ASP.NETHTMLCSSJavaScriptWeb Development

Avatar of undefined
Last Comment
Peter Chan

8/22/2022 - Mon
Kim Walker

I deleted my previous comment when I noticed you have three LinkButtons. The CSS code you have here should work for the first LinkButton. Does it not? Do you want the same effect on the other two LinkButtons?
Peter Chan

ASKER
Yes, I do not see hovering effect to all 3 LinkButtons.
ASKER CERTIFIED SOLUTION
Kim Walker

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Peter Chan

ASKER
Thanks a lot. BTW, what to adjust below, as ForeColor is underlined?
7t.png
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23