Hi People.
Want some help regarding overlay div.
I'm trying to develop a overly form. Just wanna know how to make div container(the overlay form) occupy or wrap entire browser area....
What I'm trying to do is......
I have a parent container, where all other containers and images reside. In this container there is a button, "GET REGISTRATION FORM".
On click of this button, I want the background to go dull....and the registration form to fade in front... User should not have any access to the page content beneath when this form is on top. There is close button in the form. Once its clicked the form will fade out... and my home page below will be active again.
What I've done so far is....
Just above my parent container, I've created another div with id "overlay".
I've put form inside this.... and then in CSS, I've made like this.
#overlay
{
position: absolute;
z-index : 10;
top: 0;
left:0;
width: 100%;
height: 100%;
background: url('transparent_image.png');
display: none
}
Initialy I've got to hide the div, and make it appear only on click event of the "GET REGISTRATION FORM" button.
So, in jquery I've passed id of the "GET REGISTRATION FORM" button... on click... #overlay will fadeToggle();
Now the problem is... my home page content is dynamic. I mean there are some tables which display lot of data. And these records are fetched from database and displayed in the table. So the number of records displayed in the table vary.... and hence the height of my home page will vary.... I'm not able to get the #overlay container to occupy entire browser area.... I mean it goes to certain height... and then when I scroll... the home page contents (which are beneath the overlay form) are visible .... I mean the overlay container won't completely wrap the browser area. Is there any way to make it occupy entire home page..?
Sorry for the lengthy post, just wanted to clarify my issue as much as possible.
Thanks