Poornima
Poornima

Reputation: 203

How to apply css filter in mozilla?

filter: progid:DXImageTransform.Microsoft.Alpha(style=1,opacity=80 ); opacity: 0.5; -moz-opacity: 0.5

This works well with IE but I want this to work in mozilla also. What is the solution?

Upvotes: 0

Views: 2055

Answers (2)

Sean Patrick Floyd
Sean Patrick Floyd

Reputation: 298898

These are three definitions that do the same thing:

filter: progid:DXImageTransform.Microsoft.Alpha(style=1,opacity=80 ); // IE only
opacity: 0.5; // CSS 2, FireFox supports this from version 3
-moz-opacity: 0.5 // FireFox only, pre 3.x versions

See opacity on QuirksMode, CSS compatibility on QuirksMode

So, it does work in Mozilla FireFox in versions 3.x and higher.

Upvotes: 1

Fermin
Fermin

Reputation: 36081

opacity:0.5 should be working in mozilla, see https://developer.mozilla.org/en/CSS/opacity

Have you ran firebug or anything to see if the another style is being applied?

Upvotes: 0

Related Questions