This is a migrated thread and some comments may be shown as answers.

How to change the image on hover for a Kendo Button?

2 Answers 518 Views
Button
This is a migrated thread and some comments may be shown as answers.
Devna
Top achievements
Rank 1
Devna asked on 04 Feb 2015, 05:06 AM
Hi,
I've added a kendo button which looks like this in HTML -
<a data-uid="a26bc1df-cc6a-402c-b5be-a983914ef703" class="q-btnHover k-button k-button-icon ng-scope" id="Refresh" data-overflow="auto" style="visibility: visible;"><img alt="icon" class="k-image" src="refresh.png"></a>

I want to change the image to refresh-hover.png on mouse hover on the button.

Please help.
Thanks and Regards
Devna

2 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 05 Feb 2015, 05:38 PM
Hi Devna,

The following CSS rule should help to achieve the expected result: 
img.k-image:hover {
    content: url('/* ... */');
}

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Devna
Top achievements
Rank 1
answered on 06 Feb 2015, 04:26 AM
Hi Iliana,
Thank you so much! It did work but for me it worked without the quotes.

Regards
Devna
Tags
Button
Asked by
Devna
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Devna
Top achievements
Rank 1
Share this question
or