asp:Button does not respond to CSS styling.
CSS:
.TabButton
{
border: none;
background-size: cover;
background-repeat: no-repeat;
width: 100%;
height: 100%;
}
HTML5:
<asp:Button runat="server" Text="Events" CssClass ="TabButton" OnClick ="NavigationTab_OnClick" style="background-image:url(image link)"/>
The above code does not seem to work as expected. The CSS properties defined for the .TabButton class are not applied to the button element. I have attempted changing the "CssClass" attribute to "class" and even tried using "id", but neither had any effect on the button's appearance. Other HTML elements styled with the same .css file do respond correctly to the styling rules.