a:link
{
color: white;
background-color: black;
text-decoration: none;
border: 2px solid white;
}
a:visited
{
color: white;
background-color: black;
text-decoration: none;
border: 2px solid white;
}
a:hover
{
color: black;
background-color: white;
text-decoration: none;
border: 2px solid black;
}
Button :
<asp:LinkButton ID="A" runat="server" Text="A"
OnClick="searchalpha" cssClass="a" />
It’s not working — do you have any solution for this?
The name of a class in CSS must start with a . (dot).
So your CSS should be
etc.
and in the asp:LinkButton you can set the cssClass attribute to myclass