NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
This is valid CSS code?


Joined: 21 Sep 2009
Posts: 12
Location: New Zealand
Reply with quote
PhpEd is giving me a syntax error for the following which I think is okay. It is from a seperate package and appears to work. Doing a lookup on the web suggests this is a work around for IE.

Code:

.TB_Button_Off
{
      filter: alpha(opacity=70);
      opacity: 0.70;
}


The error indication is at the = and says "unexpected ="

It is also giving me a syntax error on the following

Code:

table:not([border]),
table:not([border]) >tr >td, table:not([border]) >tr >th,
......

{
     border #d3d3d3 1px dotted;
}


It is giving an error at the first [ saying unexpected "[", expecting space or identifier or ")"
View user's profileFind all posts by veldthuiSend private message
Veteran

Joined: 06 Mar 2007
Posts: 158
Location: Poland
Reply with quote
Isn't it CSS3 spec? As I suppose, PhpED have no support for CSS3 (yet?).

Does the first example schouln't have quote in alpha?

(...) filter: alpha('opacity=70'); (...)

_________________
ML
View user's profileFind all posts by introSend private messageVisit poster's website


Joined: 21 Sep 2009
Posts: 12
Location: New Zealand
Reply with quote
Checking in another forum it is valid for IE as it has its own format. However it is not part of the CSS standard and as such is flagged as an error by PhpEd.

I spent some time trying to track down what the issue was with this before finding out it is okay. It certainly works okay and gives the required output.
View user's profileFind all posts by veldthuiSend private message
This is valid CSS code?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic