Hello I am trying to remove an image when I hover over
my search button. I am wondering it is possible to
remove the background image of a input src image. PAGE
Here is the CSS with the image I want to replace it with.
If you are overriding someone else’s CSS just make sure place !important on it. Otherwise the code above should work. Have you tried it?
Not sure if you access to this, but where these styles are internally rendered in the head of document. So if you can, comment out(don’t delete - unless you made of copy of the original) and replace with your styles.
As lauren_olsen17 said, it sounds like a local style sheet with input.gsc-search-button:hover {background-image:none !important;}
should so it, as long as the specificity is adequate.
You’ve got to be careful replacing an image on hover, as it may take a while for the new image to load, which is an awful effect. So you’d be advised to preload it, at least.
But what are you trying to achieve here? Currently, the background color changes, which doesn’t look very good. The image is transparent, but a white background doesn’t suit it very well.
Ideally, if you want the image to change on hover, look into creating a sprite.