Solved

CSS and black out background

Posted on 2010-08-25
4
610 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 500 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:gurvinder372
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

695 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