I have an asp button control on which i have applied some style. I want that on hover of this button, the colour of the button should change or something of that sort. But I fail to understand why in CSS the button hover function is not working!! PLease help. Also please let me know what are the best effects we can have for a button hover.
<asp:Button ID="btnSearch" runat="server" CssClass="button" OnClick="btnSearch_Click" Style="width: 480px;" Text="Search" />
.button
{
background: white;
border: solid 1px grey;
font-family: Arial, sans-serif;
font-size: 12px;
font-weight: bold;
color: #001563;
height: 25px;
}
.button:hover
{
background: white;
border: solid 1px grey;
font-family: Arial, sans-serif;
font-size: 12px;
font-weight: bold;
color: Red;
height: 25px;
}