I want to create a tutorial that takes the user exactly where to click. I am trying to cover the entire screen with a <div> , which will obscure all elements except a certain area , which is in a fixed width , height , top and left .
The problem is that I cannot find a way to βundoβ the parent background-color (which is also transparent).
In the snippet below, hole is a div that should be without background-color , including its parent.
Can this be done at all? Any ideas?
#bg{ background-color:gray; opacity:0.6; width:100%; height:100vh; } #hole{ position:fixed; top:100px; left:100px; width:100px; height:100px; }
<div id="bg"> <div id="hole"></div> </div>
Here is the image of the layout I'm trying to achieve:

javascript jquery html css
Koby Douek Jul 17 '17 at 12:07 on 2017-07-17 12:07
source share