Hank892
Hank892

Reputation:

CSS - Do non-IE browsers support the "filter" attribute?

IE5.5+ has supported the CSS attribute "filter" where you convert a color image into grayscale using just CSS.

filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);

Do other browsers support a similar CSS tag without using JavaScript?

Upvotes: 2

Views: 1087

Answers (4)

DisgruntledGoat
DisgruntledGoat

Reputation: 72530

I'm pretty sure Opera supports some of the MS stuff. Haven't been able to find out exactly what parts they do support.

Upvotes: -1

Paulo
Paulo

Reputation: 4333

No they do not. Realistically you shouldn't be using those in cross-browser web development unless it is to make IE work in ways the other browsers don't. The obvious example is PNG support.

Upvotes: 1

janhartmann
janhartmann

Reputation: 15003

You can check out: http://snipplr.com/view/2836/grayscale-img-with-css-crossbrowser/

I hope it helps. I would still recommend using server-side for image manipulation, or Photoshop.

Upvotes: 0

Ben Blank
Ben Blank

Reputation: 56572

No. Filters are tied to ActiveX.

One example of how to achieve greyscaling in other browsers, but it does use JavaScript.

Upvotes: 6

Related Questions