I can’t get hover opacity to change in firefox or IE. it’s working in chrome. Firefox and IE is able to work with opacity initial state as defined in .move, but just not on hover. Any ideas.
<style>
.move{
width:100px;
height:100px;
background-color:red;
opacity:0.2;
filter:alpha(opacity=20);
}
.move:hover{
opacity:1;
filter:alpha(opacity=100);
}
</style>
<div class="move"></div>
This is a bug: http://support.mozilla.com/pa-IN/questions/746770
The quick fix is replacing:
with
Use the script found at http://www.xs4all.nl/~peterned/csshover.html to address IE quirks.
Final code is
You need to add -moz-opacity and -khtml-opacity to support webkit and older firefox installations.