Having trouble with CSS filters in IE8. I have a div with a gradient background that needs to have opacity set to 0, and when hovered over, the opacity should change to 1. Here's my code:
#myDiv {
filter: alpha(opacity=0);
opacity: 0;
background:rgba(75,29,79,0.85); /* For modern browsers */
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=1, StartColorStr='#D84B1D4F', EndColorStr='#D84B1D4F')"; /* For IE8 */
}
Then, I have a hover effect for this div:
#myDiv:hover {
filter: alpha(opacity=100);
opacity: 1;
}
However, it doesn't seem to be working. Could it be because both filters are being used? Is there a way to make them work together?