How to set both image and text for linkbutton control in ASP.NET through CSS ?
I want linkbutton control in asp.net to have both icon and text for login, add update delete etc (.png or .gif) with it.I have googled and find some posts saying its possible through css with following code:
.clslnkbutton {
background: url(../images/icons/login.png) no-repeat left top;
display:inline;
padding-left:18px;
margin-left: 10px;
padding-right:10px;
}
<asp:LinkButton ID="LinkButton1" CssClass="clslnkbutton" runat="server">Login</asp:LinkButton>
But, after trying above code still its not displaying image.
Please tell some solution.