I'm facing a dilemma in choosing between an ASP.NET control and an HTML element for creating a button with a CSS-defined background that changes on hover...
1. Initially, it seems the ASP.NET ImageButton control is not suitable for this purpose because the background I want has transparency within it. Setting it using CSS results in an icon appearing above the ImageButton in Internet Explorer (default image icon).
2. Server-side button control also doesn't work well as when its background is set with CSS, there appears to be a border around it.
3. Setting the background with CSS doesn't seem to apply to link buttons!!
4. HTML elements lack a server side onclick event
For example, the following code doesn't function as intended:
<div runat="server" onclick="serverside">
</div>
Could you please guide me on how I can accomplish this task?
Thank you in advance