Forum Moderators: not2easy
Anyone know a work around?
sample:
.signup { background: url('image.jpg'); }
button.signup { background-position: 0 -17px; height: 17px; margin: }
a:hover button.signup { background-position: 0 0; }
.rollover a, button
{
width: 31px;
padding: 0;
border: 0;
cursor: pointer;
display: block;
}
<form><a class="rollover" href="#"><button type="submit" name="enter" class="signup"></button></a></form>
the only way i've managed to get it working on firefox so far is to remove the anchor from around the button, but of course this stops the rollover effect.
But removing the href="#" stops the rollover working in IE and Opera, though does allow the submit button to work.
Anyone else got any ideas for a way to get it working with all three?
A way to do it would be use
button:hover;. But IE doesn't support hover on elements other than <a>, there are workarounds in the form of javascript or a whatever:hover [xs4all.nl] behaviour file.
Suzy