[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2004-08-08
3
Medium Priority
?
2,276 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 1000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Suggested Courses
Course of the Month17 days, 17 hours left to enroll

830 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