Razor So i wanted just to blur background-color attribute, without blurring text.
If you blur a monochromatic background, what do you expect? Try Photoshop or Gimp, fill your canvas with one color and blur it, you will not see any difference.
And yes, if you apply a blur filter to an element, that element including it's child elements will be be blurred, there is no filter that applies only to the background. So if you have a background, which you want to blur without effecting any children, then there shouldn't be any children. That's what @clarkwinkelmann's and my approach deliver.
I tried your solution, what u posted in post above my, but that do not seem to work either.
Please, do me (and yourself) one favor: Never just say "it doesn't work". If you go to a doctor, do you just state "I feel bad" and let the doctor guess what might be wrong with you, or do you explain your problem a little bit more in detail?
So, what happens, if you apply my CSS? You should now have an apple as your new background and it should be blurred. If it looks different, maybe you should show us, how it looks like.
I have one more idea: Do you hope to achieve a blurring effect to the starfield background (<body>
element)? And do you want that blur being restricted to your overlaying element (the <header class="Hero">
or <div id="content">
element), as if the .Hero
or #content
element caused the blur to the body?