PDA

View Full Version : ok in IE, not in Netscape


kteicher
05-28-1999, 10:57 PM
I am helping a friend with a page.[nbsp][nbsp]It displays fine when using IE, however in Netscape two tables seem to be overlapping.[nbsp][nbsp]http://www.bangkok.com - in Netscape the headings in the left hand column (Features, shopping, music) are running into the center column.[nbsp][nbsp]Any ideas in how to fix this are appreciated.[nbsp][nbsp]I don't see anything wierd in the html.

Keith

Justin
05-28-1999, 11:05 PM
You're right - Netscape 4.08 here, and everything is out of alignment... looks fine in IE5 though.

What editor was used to spit out this code? There are far too many nested tables for my liking - and that's probably what is causing the problems. Netscape has poor support for nested tables... I noticed a lot of <DIV..> tags - I don't understand the purpose of DIV and have never used it - <DIV align=center> and such - what's wrong with <center> or better yet, <td align=center> since all of the <DIV> tags are used within table cells...?

I suspect Front Page (only because it works in IE and not NN), but not sure - either way, NN chokes on too many nested tables...

Justin

kteicher
05-28-1999, 11:17 PM
I believe the page was created with Dreamweaver, but I am not positive.[nbsp][nbsp]I guess I will have to go big-time HTML hunting (and see if some of the tables can be eliminated).

Armand
05-28-1999, 11:35 PM
Looks fine to me currently... using Netscape 4.07

kteicher
05-29-1999, 12:04 AM
Each column of the table is a fixed width, so I removed the width paramater for the entire table and that seemed to fix the Netscape problem.[nbsp][nbsp]Wierd.

Justin
05-29-1999, 03:44 AM
Ah, I think I see - maybe... I didn't look but is there any cellspacing on those tables? I think the problem is that NN takes the spacing into account when figuring the table width - eg:

<table cellspacing=5>
<tr>
<td width=100>&amp;nbsp;</td>
<td width=100>&amp;nbsp;</td>
</tr>
</table>

I think in IE the table's width would be 200, but Netscape would be 205 or 210 or something like that... I think :) I know the two render tables differently, and I think that's one of the quirks. What I usually do is use 0 cellspacing, some cellpadding, and if necessary a <td width=2><img src=1x1.gif width=1 height=1 border=0></td> in between to space the cells - a single pixel clear gif image.

Glad you got it figured out though :)

Justin

Bi4Be
05-29-1999, 10:06 PM
. general discussion post
[This message has been edited by Bi4Be (edited 02-16-01@9:33 pm)]