I want to use CSS to create a border around my asp.net image buttons when the mouse is hovering on them or when they have focus. I can make this work with normal images but not the imagebuttons.
When I run the code below and put my mouse over the normal image it works but it does not when I put it over the imagebutton. Also, how can I get a similar effect when the imagebutton has focus?
border:1px solid transparent;
border:1px solid #021a40;
<img alt="" class="CCSImageButton" src="images/FWEditDetails.png" />
<asp:ImageButton ID="ImageButtonEdit" runat="server" Enabled="True"
EnableTheming="False" CssClass="CCSImageButton" />