2
I can not put an effect on a button, I have 3 images made in photoshop, one that is Normal (Link), another when you pass the mouse (Hover), and one when you click (Actived), however, I can not activate these effects via CSS, follow my HTML...
<input type="image" src="Botao Azul Normal- OK.png" class="botao">
And the css...
.botao:hover{background-image: url('Botao Azul Hover - OK.png');
}
Imagery:
I haven’t done the Actived yet...
Unfortunately, the Hover effect does not work, the button even appears, but via HTML, I wanted to do via CSS too...
I managed to run Chrome and Firefox and ran, my problem is that IE does not work, and in the company they use IE8.
You are using the same images, you won’t be able to see the effect. Also, it is necessary to define the properties
height
andwidth
to use thebackground-image
.– Beterraba
Thousand excuses, I copied wrong, the <input type="image" src="Blue Button Hover-OK.png" class="boot"> is <input type="image" src="Blue Button Normal- OK.png" class="boot">, I put wrong here, but the error persisted... my inattention, I will correct
– Vinithius
NOTE: I wanted to do everything in CSS, I wanted HTML only for "structure", until Normal Background(Link) was in it...
– Vinithius
Please prefer [Edit] to ask to correct or add information. Do not forget to give feedbak to the answers given, updating the question if necessary. And, final tip: it is not worth converting the question into something else, if the problem becomes another, make a new question. Good luck!
– brasofilo