Another Background-image when hovering on widgets
-
Hello to all,
I’m having problems with setting another background-image on the 3 widgets of the first page when hovering on it (my theme is Responsive Free from cyberchimps). I’ve set image1 when no mouse is hovering on it, and i would like to have image2 when hovering with mouse on it.
Currently i have set image1 in “Design -> Widgets -> Homepage Widget 1″ with following html-code:
<a href="https://..." rel="attachment wp-att-1234"><img src="https://..." alt="image1" width="100" height="150" class="aligncenter size-full wp-image-1234" /></a>
and it’s working fine.
And now i wanted to set image2 in my style.css (of my child-theme of course). I used the id #text-11:hover. And so looks my code in this id:
#text-11:hover { background-image: url(“https://…”); background-repeat: no-repeat; background-position: center; }
I can see image2 in my widget1 but it’s behind image1. I tried to add z-index in the id #text-11:hover but image2 is still behind image1.
What do i have to do to make image2 instead of image1 showing when hovering with mouse on the widget1.
- The topic ‘Another Background-image when hovering on widgets’ is closed to new replies.