473,241 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,241 software developers and data experts.

Trouble Centering Temporary "Pop-Box" DIV and Background Color

Hi all.

I am using styles to lock down the GUI until the user enters some info
in a CSS/DIV pop box.

If the user does now scroll before he clicks, the pop box is centered
and the
background color spans the entire page. But, if he scrolls first, say,
to the middle
of the page, then when the click happens you only see the bottom of
the #EAEAEA
background and the pop box. If I take out top:0px and left:0px the
same thing
happens.

How do I get the new background color to ALWAYS cover the page and the
DIV pop
box to ALWAYS be centered?

Here is the CSS:

#myBackground {
background-color:#EAEAEA;
width:100%;
height:100%;
top:0px;
left:0px;
position:absolute;
filter:alpha(opacity=75);
opacity:0.75;
-moz-opacity:0.75;
display:none;
}

And Here Is The HTML:

<body background="img/background.jpg" onload="Init();">
<div id="myBackground"></div>
<div id="myEmail" style="display:none;">
<form id="mailForm" action=""
method="POST" enctype="multipart/form-data" onsubmit="return
makeMailto();">
<div id="six">
<asp:Table
ID="Table6" runat="server" CssClass="tableA" BackColor="white">
<asp:TableRow>

<asp:TableCell CssClass="cellA" ColumnSpan="2">
<div
style="position: relative;">

<div style="color: white; float: left; font-size: large;">

<b>Email This Video</b></div>

<div style="float: right;">

<img src="img/x.png" onclick="HideForm();" style="cursor: pointer;"
alt="close" height="15"

width="15" /></div>
</div>
</
asp:TableCell>
</
asp:TableRow>
<asp:TableRow>

<asp:TableCell>

<asp:Table ID="Table7" runat="server" CssClass="tableB">

<asp:TableRow>

<asp:TableCell CssClass="cellB">

<asp:Table ID="Table8" runat="server" CssClass="tableC">

<asp:TableRow>

<asp:TableCell CssClass="cellNIL">

<input type="radio" name="sharetype" value="Where I clicked"
checked="checked" />

<br />

<input type="radio" name="sharetype" value="From the start"
checked="checked" />

</asp:TableCell>

</asp:TableRow>

<asp:TableRow>

<asp:TableCell CssClass="cellC">

To:

</asp:TableCell>

<asp:TableCell>

<input tabindex="1" id="to" name="to" size="30" />

</asp:TableCell>

</asp:TableRow>

<asp:TableRow>

<asp:TableCell CssClass="cellD" >

Cc:

</asp:TableCell>

<asp:TableCell>

<input tabindex="2" id="cc" name="cc" size="30" />

</asp:TableCell>

</asp:TableRow>

<asp:TableRow>

<asp:TableCell CssClass="cellE" >

Subject:

</asp:TableCell>

<asp:TableCell>

<input tabindex="4" name="subject" size="30" />

</asp:TableCell>

</asp:TableRow>

<asp:TableRow>

<asp:TableCell CssClass="cellF">

Body:

</asp:TableCell>

<asp:TableCell>

<textarea tabindex="5" accesskey="b" name="body" rows="5" cols="35"></
textarea>

</asp:TableCell>

</asp:TableRow>

<asp:TableRow>

<asp:TableCell CssClass="cellG">

</asp:TableCell>

<asp:TableCell>

<input type="submit" tabindex="6" onclick="HideForm();" value="Send
Video Link!" />

</asp:TableCell>

</asp:TableRow>

</asp:Table>

</asp:TableCell>
</
asp:TableRow>
</
asp:Table>
</
asp:TableCell>
</
asp:TableRow>
</asp:Table>
</div>
</form>
</div>

Oct 30 '07 #1
1 3962
pbd22 schreef:
Hi all.
[snipped]
>
Here is the CSS:
[snipped]
And Here Is The HTML:
[snipped]

And where is the URL?

--
Rob Waaijenberg
Oct 31 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: BlackSabbath | last post by:
Hi, In fact, I want to suppress the right-click menu and use mine : It must like same look and feel than the original context menu Is it possible ? Tanks Olivier
5
by: Joe | last post by:
Hi- What do I need to add to this to make it pop up in the centre of the screen: <SCRIPT LANGUAGE="JavaScript"> function pop() {...
2
by: Rob Evans | last post by:
Please excuse my ignorance on this matter.. but.... What exactly is the definition of a "pop-up window" - by that I mean one which will be blocked by software such as the Google Toolbar and...
3
by: Shiperton Henethe | last post by:
Hi Can anyone tell me how to open up a new normal, full-sized browser window from a small popup window? I'm using something like this. <script language="javascript"> <!--
3
by: JohnEGee | last post by:
Hello, all, and TIA for any help you can offer. I've searched the Internet for answers and have finally come here. I've created a page (several, actually) with a link that opens a pop-up...
2
by: et | last post by:
I want to use a url link link to another page, opening up a second window, no problem. Isn't there a way to control the size of that second window, so it looks more like a popup, and doesn't cover...
7
by: Girish Sahani | last post by:
Hi, Please check out the following loop,here indexList1 and indexList2 are a list of numbers. for index1 in indexList1: for index2 in indexList2: if ti1 == ti2 and not index1 !=...
4
by: chaitu | last post by:
Hi guys, I've written a parallel build program (in Perl) that takes a pre-computed dependency tree of many projects in 2 visual studio .net 2003 solution (.sln) files here at my company, and...
2
by: beydtha | last post by:
Hi there all some times ,, a message is shown at the time of visiting web sites and I could n ot see some flash or animation in the web sites.. So I want to keep my web sites free from popup...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.