I am using the ms proprietary css property "filter" to control the opactiy of an element.
#square2
{
filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=50)";
zoom:1;
padding:10px;
border:solid 5px #0cc;
height:200px;
width:400px;
background-color:#cc0;
color:#c0c;
font-size:2em;
}
The problem is highlighted in IE7 (running IE8 in IE7 Browser Mode). The filter property isn't considered to be 'closed' by the parser. The filter property therefore contains all other properties that suceed it.
I wanted to post a screen shot at this point but noobs ain't allowed!
I understand that I can simply move the filter property to the end of the css selector, but this is a simplified version of the problem - and that is not a realistic solution.
The problem is worsened when it is followed by another css selector. The new css selector itself gets caught up in the previous selector's filter property. The new selector then takes no effect at all, as though it wasn't there.
I am simply looking to make IE7 recognise where the end of the filter property is.
Your help is much appreciated.
Thanks