...

View Full Version : A little table mystery



gorilla1
01-14-2003, 01:52 AM
The code below works fine in IE5. But in NS4, it pushes past 100% of screen resolution. If I remove the two tables nested inside the second TD (ie second column), then it works fine in NS4, too. But why? The two nested tables are there to build a vertical rule down the length of the text area. Is there a better way to get this to work in both browsers? Thanks.

G

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>


</HEAD>
<body bgcolor="#ffffff" link="#990000" vlink="#990000" MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0>
<table border="0" cellpadding="0" cellspacing="0" align="center" width="98%">

<tr ><td ><IMG src="1pix.gif" alt="" BORDER=0 height="10"></td></tr>
<tr><td>

</td>

<td valign="top" bgcolor="#ffffff">


<table cellspacing="0" cellpadding="9" border="0"><tr><td valign="top">


<table align="left" style="border-left: 1px solid #000066;" cellpadding="0" cellspacing="9" ><tr><td>

<div class="textgebk">

<p ><i>Everything should be made as simple as possible, but not simpler. Everything should be made as simple as possible, but not simpler. Everything should be made as simple as possible, but not simpler.</i> -- A. Einstein <BR><BR></P>


</div>

</td></tr></table>
</td></tr></table>

</td>


<td bgcolor="#FFFFFF" valign="top" width="1%">

<IMG src="1pix.gif" alt="" BORDER=0 height="10">
</td>
<!-- ************** End Right Column ***************** --> </tr>

</td>
</tr>
</table>


</body>
</HTML>

Borgtex
01-14-2003, 03:56 AM
Maybe the div? or the style? who knows.... NS4 was a buggy & deficient HTML interpreter

gorilla1
01-14-2003, 04:32 AM
Thanks, Borgtex. But minus the div and minus the style, still no go. NS4 is full of problems, but plenty still use it. I don't mean to encouirage them, but I still would rather develop stuff that works on it too.

G

zoobie
01-14-2003, 04:51 AM
Well, I remember reading years ago that NS4 had severe problems with nested tables...a total clunker that you shouldn't be coding for any more than IE3. :D

gorilla1
01-14-2003, 05:16 AM
Zoobie or not Zoobie... or Zoobie Zoobie zoo....

That could be it, thnx. Though I would still like to get the vertical line somehow for NS4...

MCookie
01-14-2003, 09:44 AM
No, it's not the nesting, it's the coding. Your main table looks like this:

<tr>
<td></td>
</tr>

<tr>
<td></td>
<td></td>
<td></td>
</tr>

So you need a colspan="3" in the top row.

ronaldb66
01-14-2003, 10:09 AM
When in doubt, set border to 1, i always say; that'll quickly show you where it's going wrong, like that colspan problem of yours (admittedly, i didn't see it... :D )



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum