Solved

CSS and black out background

Posted on 2010-08-25
4
604 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Unordered lists (HTML ul tags) are very handy to create menus of all types, shapes and sizes.  All it takes is a little knowledge of CSS and the possibilities are endless. First off, you should know the general format for menus created using the …
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…
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

771 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now