0

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?

Carl J.
  • 71
  • 3
  • 4

2 Answers2

3

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

meder omuraliev
  • 183,342
  • 71
  • 393
  • 434
0

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.

Community
  • 1
  • 1
Roger
  • 1