Carl J.
Carl J.

Reputation: 71

filter: progid:DXImageTransform fails W3C CSS validation

I am using the following three lines in CSS to enable smooth transitions between "slides", but line #1 fails W3C CSS validation.

filter: progid:DXImageTransform.Microsoft.alpha(opacity=100);
-moz-opacity: 1;
opacity: 1;  

Is there a way to reformulate the same intent (smooth transitions through alpha blending) but with methods that won't fail validation?

Upvotes: 0

Views: 2873

Answers (2)

Roger
Roger

Reputation: 1

Check out CSS Opacity Properties? , they are using " " around progid:DXImageTransform.Microsoft.alpha(opacity=100) which clears validation.

I assume the CSS still works correctly.

Upvotes: 0

meder omuraliev
meder omuraliev

Reputation: 186662

You can use IE conditional comments to serve a different stylesheet with the filter in it.

Upvotes: 3

Related Questions