473,396 Members | 1,757 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,396 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 3968
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.