[thelist] Netscape 6/7- trouble with style.display= changing the layout!
Dave Naden
Dave.Naden at sas.com
Tue Sep 3 10:32:01 CDT 2002
Here's the code, inside the email :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>Test Page to find out why NN6 is not rendering this thing right! </TITLE>
<SCRIPT type="text/javascript" language="Javascript">
function hidethem() {
for (var ii = 5; ii<7; ii++) {
var obj = document.getElementById("node" + ii);
obj.style.display = "none";
}
}
function showthem() {
for (var ii = 5; ii<7; ii++) {
var obj = document.getElementById("node" + ii) ;
obj.style.display = "block";
}
}
</SCRIPT>
</HEAD>
<BODY>
<TABLE CELLSPACING='0' CELLPADDING='0' BORDER='0' id="node4"><TR><TD>First table</TD></TR></TABLE>
<TABLE CELLSPACING='0' CELLPADDING='0' BORDER='0' id="node5"><TR><TD>Second table</TD></TR></TABLE>
<TABLE CELLSPACING='0' CELLPADDING='0' BORDER='0' id="node6"><TR><TD>Third table</TD></TR></TABLE>
<FORM name="form1" action="">
<input type="button" value="Hide the inner tables" onClick="hidethem();" >
<input type="button" value="Show the inner tables" onClick="showthem()" >
</FORM>
</BODY>
</HTML>
-----Original Message-----
From: Peter-Paul Koch [mailto:gassinaumasis at hotmail.com]
Sent: Tuesday, September 03, 2002 9:19 AM
To: thelist at lists.evolt.org
Subject: RE: [thelist] Netscape 6/7- trouble with style.display=
changing the layout!
>Thanks for the reply, but this makes it just worse! Did you try the code?
>(I'm using NN 6.23) -dave naden
I did use the code, but ages ago in NN6.1 or something. For more help I
need to see the page (*no* attachments please, URL).
ppk
> >I'm at a loss with this problem--when I run the enclosed code, by
>assigning
> >style.display- "block", my alignment is thrown off; extra space is added
> >between each row. When the page first loads, it's fine. This works fine
>in
> >IE 5 or 6, but Netscape 6 doesn't render it correctly. Please help! Is
> >there a workaround?
>
>Try display: table-row for NN6. But more recent builds do accept display:
>block and still show the TR fine.
_________________________________________________________________
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com
--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !
More information about the thelist
mailing list