?
Solved

CSS and black out background

Posted on 2010-08-25
4
Medium Priority
?
623 Views
Last Modified: 2012-05-10
Im looking to show a div in the centre of my page, and then disable all other controls on the page.

My idea is to have a div with absolute positioning, and then set the background colout to solid white, so you cant see anything in the background.

I know how to show the div, but have no idea how to set the background of the div, or float the div on top of everything else.

Any ideas would be appriciated.

Thank you
0
Comment
Question by:tonelm54
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 18

Expert Comment

by:Anil Golamari
ID: 33526085
http://www.hscripts.com/scripts/JavaScript/disable-parent-window.php

Is this link is of any helpful foryou. Check it out.
0
 
LVL 29

Accepted Solution

by:
chilternPC earned 2000 total points
ID: 33526111
it will involve javascript.
there's a tutorial here:
http://library.creativecow.net/articles/chaffin_abraham/full-page-overlay.php
0
 
LVL 29

Expert Comment

by:chilternPC
ID: 33526121
on the tutorial link I've given you - change the opacity to 100 to achive a white backbackground
0
 
LVL 40

Expert Comment

by:Gurvinder Pal Singh
ID: 33528535
try this simple one also

div.whiteDivOverlay
{
   background-color:#ffffff;
   position: absolute;
   top: 0px;
   left: 0px;
   width: 100%;
   height: 100%;
  z-index: 10000;
}

this will completely whitewash the screen :)
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Suggested Courses

650 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