My situation is a bit tricky and hard to explain, hopefully I can do this clearly.
On my website I need it so you click on something and it downloads an image, but the object you click on must allow the :hover
psuedo class to change the image on :hover
.
How I've set it up is as follows:
If you remove visibility:hidden
from the HTML, the image appears and the browsers' download function becomes available.
I can choose which image the img src=
is, but adding visibilty:hidden
will disable the download
ability.
To reiterate - I need it so you you hover over prof_wl_btn
and it downloads the <a>
's href=...
image and on hover/mouseover prof_wl_btn changes it's background position (so far using psuedo class).
Possible Methods
1: Use javascript onMouseover and Z-Index, but I can't get z-index to work here...
2: I tried using the CSS attribute clip:rect(Xpx,Xpx,Xpx,Xpx);
but that crops everything.
If this is unclear I'm sorry, this is hard to explain! I can't find any other post like this.