Forum Moderators: open
<a href=""><input type="submit" name="hSubmit" value="blah" class="button"></a>
input.button {
width:60px;
height:18px;
border: none;
font-family: sans-serif;
color: #000000;
font-size: 10px;
vertical-align: middle;
background-image: url(button60_off.gif)
}
:hover input.button {
width:60px;
height:18px;
border: none;
font-family: sans-serif;
color: #000000;
font-size: 10px;
color: #0000FF;
vertical-align: middle;
background-image: url(button60_on.gif)
}
This works fine in IE, but not in Firefox. Can anybody point me in the right direction?
a#button:link, a#button:visited{
whatever styles;...}
a#button:hover{
what different styles;...}
As usual, IE will accept pretty much any coding and attempt to 'clean it up' ;-) When using a hover effect on a link, need to include any in between steps - in this case, visited.
Good luck,
El
I didn't write the initial post clearly at all (first ever post!).
The problem isn't the rollover. It works well in both IE & FF, but under Firefox the button doesn't function.
I want to be able to select a theme from a drop down list. I have 2 buttons, 1 for select (submit) and 1 for cancel.
Under IE the rollover works and the buttons do what I intend.
Under FF, rollover is fine, but the <a> tag seems to stop the 'submit'. It works in the same way as the cancel, so it's sending something.
An earlier post on the forum stated that IE will only allow the :hover pseudoclass on <a>nchor tags. That's why I've gone down this path.
I think the id method might be a winner.