0

I want to use a filters on some 'background-image: url("http://blablabla.jpg");'

The problem now is that it also affects the typography etc. Cause I apply the filter on the div instead of the background-image.

Is it possible to have something like this in css:

background {
   filter: grayscale(100%) brightness(50%) contrast(100%);  
}

Or 'background-image' etc. I tried multiple things but nothing seems to work.

clankill3r
  • 9,146
  • 20
  • 70
  • 126

1 Answers1

0

use Filter With Prefix

-webkit-filter:  grayscale(100%) brightness(50%) contrast(100%);
  -moz-filter:  grayscale(100%) brightness(50%) contrast(100%);
  -o-filter:  grayscale(100%) brightness(50%) contrast(100%);
  -ms-filter:  grayscale(100%) brightness(50%) contrast(100%);
    filter: grayscale(100%) brightness(50%) contrast(100%);

DEMO

Kawinesh S K
  • 3,148
  • 1
  • 16
  • 29