Jump to content

[SOLVED] dimming the background when div is visible


sayedsohail

Recommended Posts

you'll want to make a small, translucent image of some light-gray color.

 

then, make it the background of a hidden div with a width and height of 100% and a z-index somewhere between your main content and your pop-up.

 

when you un-hide the pop-up, unhide this div as well.

 

 

there may be other methods, but this is what i've done in the past.  Either way, you can't do this in PHP -- so mod's feel free to move this to another board.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.