user1032531
user1032531

Reputation: 26311

filter:Alpha(opacity=50) doesn't pass CSS validation

The following CSS doesn't validate using http://jigsaw.w3.org/css-validator/.

Is it invalid? Should it not be used, and if not, what should be used?

div.fade
{
   opacity:0.5;
   filter:Alpha(opacity=50); /* IE8 and earlier */
}

Upvotes: 0

Views: 916

Answers (1)

Rob
Rob

Reputation: 15168

The filter part, as you are using it, has never been part of the CSS spec and is proprietary to IE alone. That is why it's flagged as invalid.

Upvotes: 1

Related Questions