netscape div solid background

D

David McDivitt

I have a div which I position on the page containing errors. In IE it works
fine. In Netscape it has a transparent background and I'm unable to make it
solid. Please help. Thanks

<div id="statusContainer"
style="display:none;position:absolute;top:0px;left:0px;height:0px;width:0px;">
<table border="15" bordercolor="#DE0000" bordercolorlight="#FF0000"
cellpadding="10"><tr><td><table cellspacing="0" cellpadding="0">
<tr><td id="statusText" nowrap><%=status%></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td align="center"><input type="button" value="Close"
onclick="document.getElementById('statusContainer').style.display='none';
document.getElementById('statusFrame').style.display='none';"></td></tr>
</table></td></tr>
</div>
<iframe id="statusFrame"
style="display:none;top:0px;left:0px;height:0px;width:0px;position:absolute;"
src="about:blank" frameBorder="0" scrolling="no"></iframe>

var clientX,clientY;
if (self.innerHeight) {
clientX = self.innerWidth;
clientY = self.innerHeight;
}
else if (document.documentElement &&
document.documentElement.clientHeight) {
clientX = document.documentElement.clientWidth;
clientY = document.documentElement.clientHeight;
}
else if (document.body) {
clientX = document.body.clientWidth;
clientY = document.body.clientHeight;
}
var container = document.getElementById("statusContainer");
var frame = document.getElementById("statusFrame");
container.style.top = (y + 50) + "px";
container.style.left = (x + 50) + "px";
container.zIndex = 99;
container.style.display = "block";
frame.style.width = container.offsetWidth + "px";
frame.style.height = container.offsetHeight + "px";
frame.style.zIndex = container.style.zIndex - 1;
frame.style.display = "block";
 
D

Danny

If the page contains errors, chances are the culprit is there, so,
repost with a more specific query.


Danny
 
D

David McDivitt

From: David McDivitt said:
Date: Sat, 03 Dec 2005 17:02:07 -0600
Lines: 44

I have a div which I position on the page containing errors. In IE it works
fine. In Netscape it has a transparent background and I'm unable to make it
solid. Please help. Thanks

I fixed my problem by using class="whatever" in the tag. Should not have to
do that. I should have been able to add more stuff to the style property,
but that did not help. I had something in the style sheet already so I used
that, and it ends up looking better than plain white.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,276
Latest member
Sawatmakal

Latest Threads

Top