Tutorial :CSS - Do non-IE browsers support the “filter” attribute?



Question:

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?


Solution:1

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.


Solution:2

No. Filters are tied to ActiveX.

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


Solution:3

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.


Solution:4

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


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »