View Full Version : javascript in netscape table causes gaps

07-09-2002, 05:25 AM
Hello - this is driving me nuts, so any advice is appreciated. (I'm also new at this, so please bear with me.)

I'm trying to use a random image generator with javascript on my site. The random images themselves are to appear in a carefully laid out table, whose size cannot be altered.

The code for the cell where the images are to appear is:



<!-- Begin
// End -->


In IE it works fine but in Netscape the table breaks apart -- it's like it adds a 5 pixel border to the bottom of the image.

Without the random image generator code, the table looks fine in Netscape -- so why would this cause gaps in the table?

Any help is appreciated!

07-09-2002, 05:44 AM
Just a suggestion: turn off wrap in your editor, and put the <td...>, the <script>.....</script>, and the closing </td> on the same line. Browsers do odd things with whitespace. Hard to say more, without the code which outputs the HTML to the cell. If there are any document.writeln()s in the script, try changing them to document.write().