Page 1 of 1

CSS + opacity

Posted: Sun Apr 01, 2007 11:41 am
by thiscatis
I'm using

Code: Select all

filter:alpha(opacity=65);-moz-opacity:.65;opacity:.65;
in my css but it doesn't pass the validation anymore.

Parse Error - opacity=65)
Property -moz-opacity doesn't exist : 0.65
Property opacity doesn't exist : 0.65

Anyone has a clue what to use instead?

Posted: Sun Apr 01, 2007 11:47 am
by feyd
none. They aren't valid in CSS2. CSS3 has them.

Posted: Sun Apr 01, 2007 9:29 pm
by Ambush Commander
If you really wanted CSS2 compliance, you could set these via JavaScript, but I wouldn't bother.