1

I was reading this page on stackoverflow: Change color of PNG image via CSS?. I was reading the reply by ravitadi, and he said you could change your pictures color with -webkit-filter.

My question is how could I use -webkit-filter in Mozilla Firefox. As you know -webkit-filter would not work there, so is there a alternative CSS property to use instead? I know this works in Chrome, but I need this to work in all browsers! :)

Community
  • 1
  • 1
michael jones
  • 710
  • 1
  • 8
  • 17
  • Check this: http://stackoverflow.com/questions/156116/whats-the-css-filter-alternative-for-firefox – G.L.P Feb 17 '15 at 03:48
  • @Etash That question is asking about the now-obsolete non-standard `filter` property that was in IE. Same name, but no the same thing. – Alexander O'Mara Feb 17 '15 at 03:59

1 Answers1

4

Just use filter, without the -webkit- prefix. It will work in Firefox 35 and up. If you need support for older Firefox versions, look into SVG filters. MDN has an article entitled Applying SVG effects to HTML content on the issue.

Alexander O'Mara
  • 58,688
  • 18
  • 163
  • 171