Page 1 of 1

Is this valid CSS code

Posted: Mon Sep 28, 2009 3:16 pm
by veldthui
Is the following valid CSS code?

Code: Select all

 
.TB_Button_Off
{
      filter: alpha(opacity=70);
      opacity: 0.70;
}
 
Reason I ask is my current editor is showing it as a syntax error. It was part of code in a package and have tried looking it up and believe it is a work around for IE. If it is valid I will make a bug report about it.
--John

--edit. Put the dot in front of TB_Button

Re: Is this valid CSS code

Posted: Mon Sep 28, 2009 3:30 pm
by mayanktalwar1988

Code: Select all

.TB_Button_Off
{
      filter: alpha(opacity=70);
      opacity: 0.70;
}
I THINK IT SHOULD BE LIKE ABOVE

Re: Is this valid CSS code

Posted: Mon Sep 28, 2009 3:50 pm
by veldthui
Sorry it does have the . in front of it. The syntax error is getting thrown on the = after opacity.

Re: Is this valid CSS code

Posted: Mon Sep 28, 2009 3:56 pm
by Eran
Anyway, the filter is an IE proprietary attribute, but it's necessary in order to render opacity in IE. So it's not exactly valid, but probably required