Solved

Place a semi-transparent div layer over the entire screen?

Posted on 2004-08-08
3
2,270 Views
Last Modified: 2008-02-01
Im showing an error message (with an absolutely positioned div) and i want to shade the HTML behind it to prevent the user from clicking on anything.  Similar to the behavior of a modal window.  Im able to create the transparent div, but i cant set the height and width properly in CSS to always be 100%.  The problem is: when I increase the size of the browser window, the shaded div doesnt stretch.  Any ideas?
0
Comment
Question by:soBC
3 Comments
 
LVL 8

Expert Comment

by:CoolATIGuy
ID: 11749214
0
 
LVL 36

Accepted Solution

by:
Zyloch earned 250 total points
ID: 11749216
Hi

http://javascript.about.com/library/scripts/blmodaldialog.htm has a script that mimics this. If you don't want to use that script, I can analyze it and see how it makes the background shade the whole thing.

Regards,
Zyloch
0
 

Author Comment

by:soBC
ID: 11749342
Excellent.  Worked as advertised.  Even saved me the trouble of writing the script.  I need to start thinking a little more about what i type into Google.  Either that or come up with harder questions...
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to count occurrences of each item in an array.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question