You are trying to combine two different types of images. I would change your image to a click div and make the div the same height and width of the image then set the background image in you code behind and then you can override it with style . This is one
solution. If this will not work then let me know
89krzychu
Member
1 Points
18 Posts
imagebutton with hover efect
Dec 28, 2012 09:20 PM|LINK
Can i do with css efect hover in my image button?
<asp:ImageButton ID="ImageButton1" runat="server" AlternateText='aaa' Height="99px" Width="116px" CssClass="btn" ImageUrl="~/Images/edit_n.png" />this is my code and I want do in css
btn:hover{}
and other image ?
RichardY
Star
8376 Points
1573 Posts
Re: imagebutton with hover efect
Dec 28, 2012 09:42 PM|LINK
Try:
.btn:hover { }
89krzychu
Member
1 Points
18 Posts
Re: imagebutton with hover efect
Dec 28, 2012 09:50 PM|LINK
I was trying this but when I was doing that
.btn:hover {
background-image: url(...);
}
then the image that is in image wasen't changing, only was added a new image to background of this imagebutton
RichardY
Star
8376 Points
1573 Posts
Re: imagebutton with hover efect
Dec 28, 2012 09:55 PM|LINK
Please post the complete style rules for the relevant classes or elements.
Primillo
Star
8723 Points
1677 Posts
Re: imagebutton with hover efect
Dec 28, 2012 09:59 PM|LINK
Hi
Try this one (jQuery)
jQuery-Change image on mouseover
http://www.dotnetspeaks.com/DisplayArticle.aspx?ID=89
Primillo
http://www.facebook.com/programandopuntonet
stockcer
Member
498 Points
128 Posts
Re: imagebutton with hover efect
Dec 28, 2012 10:22 PM|LINK
ASP.NET Arvixe Liaison
James River Webs, Inc.