Solved

CSS and black out background

Posted on 2010-08-25
4
607 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
  • 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 28

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 28

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
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 …

777 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