Date: 2021-11-30 18:49:16
Score: 4.5
Report link

I have two DIVs over the top of a single background image. I want to darken all areas around the two DIVs and keep the insides light. I like the shadow approach but this means one or both of the DIVs is covered.

Is there any way to darken all areas outside of the 2 DIVS?


<div class="background-image">
    <div class="light-area-1"></div>
    <div class="light-area-2"></div>
  • Blacklisted phrase (1): Is there any
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Nick Amis