I see divs act like active boxes and I thought there must be a way for it, rather than adjusting color of the page or creating a layer and bringing the focused div to the front using z index.
I want to shadow everything on the page, except for the div I want to show to the user.
Like facebooks shows the pictures in front but you can still see the page with some 50% opacity in the background.
Create an element to cover the entire page:
Style it:
Only show it when you need to. Next create a class for elements we want above this:
Demo: http://jsfiddle.net/jonathansampson/pVUHP/