CSS + opacity

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
thiscatis
Forum Contributor
Posts: 434
Joined: Thu Jul 20, 2006 11:00 am

CSS + opacity

Post 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?
Last edited by thiscatis on Sun Apr 01, 2007 11:51 am, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

none. They aren't valid in CSS2. CSS3 has them.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

If you really wanted CSS2 compliance, you could set these via JavaScript, but I wouldn't bother.
Post Reply