Is this valid CSS code

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
veldthui
Forum Newbie
Posts: 10
Joined: Tue Oct 14, 2008 4:10 pm

Is this valid CSS code

Post 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
Last edited by veldthui on Mon Sep 28, 2009 3:51 pm, edited 1 time in total.
mayanktalwar1988
Forum Contributor
Posts: 133
Joined: Wed Jul 08, 2009 2:44 am

Re: Is this valid CSS code

Post by mayanktalwar1988 »

Code: Select all

.TB_Button_Off
{
      filter: alpha(opacity=70);
      opacity: 0.70;
}
I THINK IT SHOULD BE LIKE ABOVE
veldthui
Forum Newbie
Posts: 10
Joined: Tue Oct 14, 2008 4:10 pm

Re: Is this valid CSS code

Post by veldthui »

Sorry it does have the . in front of it. The syntax error is getting thrown on the = after opacity.
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Is this valid CSS code

Post 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
Post Reply