D
D
Dyzzet2014-12-03 01:31:47
css
Dyzzet, 2014-12-03 01:31:47

Cross browser black and white CSS filter?

How to make a cross browser black and white image filter with CSS? None of the found snippet gives a result. The fragment below only works in the new Opera, in Firefox in general, instead of pictures, there is an empty space.

img
{
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    filter: url(desaturate.svg#greyscale);
    filter: gray;
    -webkit-filter: grayscale(1);
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2014-12-03
Protko @Fesor

demosthenes.info/blog/532/Convert-Images-To-Black-...
And read the note about IE10+

A
Alexander Wolf, 2014-12-03
@mannaro

labs.voronianski.com/css3-grayscale

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question