I am attempting to create a visual effect on my webpage where there is a semi-transparent overlay covering all elements except for one specific div.
Here is an illustration of the structure of my page:
<div id="d1">
<div id="d2"></div>
<div id="left"></div>
<div id="d3"></div>
<div id="right"></div>
<div id="d4"></div>
</div>
<div id="overlay"></div>
Additionally, here is a link to see the mentioned setup in action. I want the green div (#d3
) to remain visible on top of the overlay.
Is there a way to achieve this without applying position:absolute
to #d3
or making changes to the DOM? My focus is on the latest version of Chrome and I am open to using Javascript/jQuery solutions if a pure CSS3 solution is not feasible.