Friday, May 17, 2024
Homepage · c#
 Popular · Latest · Hot · Upcoming
176
rated 0 times [  177] [ 1]  / answers: 1 / hits: 19637  / 11 Years ago, fri, september 6, 2013, 12:00:00

I have a button :



<div class=HeaderBarThreshold>
<asp:LinkButton ID=SetThreshold OnClick=btnSetThreshold_Click runat=server>Threshold</asp:LinkButton>
</div>


I am trying to change the color of the button on mouse hover :



Here is my css :



.HeaderBarThreshold
{
padding-left: 10px;
font-weight: bold;
}
.HeaderBarThreshold:hover
{
color: Red;
}


It doesnt work somehow. Please let me know.


More From » c#

 Answers
1

just try this



.HeaderBarThreshold:hover a
{
color: Red !important; // !important may not be necessary
}

[#75846] Thursday, September 5, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
blaisep

Total Points: 748
Total Questions: 95
Total Answers: 108

Location: Federated States of Micronesia
Member since Sun, May 16, 2021
3 Years ago
;