1

Basically I am wanting to mimic this effect using css.

Here is a picture:

Requirements:

  1. Must be semi transparent to allow image below to show slightly
  2. Text within must not be blurred

I have tried using the css filter property but it blurs any content within the element it is applied on. The hard part is getting the image below to show through without using a background image on the overlaying div.

Any help is much appreciated.

Community
  • 1
  • 1
Haden Hiles
  • 107
  • 1
  • 8

1 Answers1

3

If the text is inside the div that is being blurred you cannot restrict that because the text starts at the same blur as that div. What you should consider doing is doubling the div and positioning it absolutely inside a relative container div which is positioned in the right place. Then blur the top div and keep the other div none blurred, because they are both positioned absolutely they will be on top of each other, you may need to user top:0px, example of the div setup.

 <div> - relative div, this keeps the other divs in the right position.
      <div>Absolute and blurred</div>
      <div>Absolute and not blurred - contains text</div>
 </div>
TheHamstring
  • 712
  • 2
  • 6
  • 22