Discussion Locked

strange behavior w/ visibility&display

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'm trying to use some DOM/JS scripting to alternately hide/display portions of a page.
I have code that functions in IE, but the Mozilla version has a strange bug that introduces extra space in the rendered page each time the visiblity is toggled on/off.

Rather than describing the code, I've posted a stripped down version of what I'm talking about at:
http://www.ljcp.com/mystery.html

in Mozilla 1.3 or 1.4a (both Windows and Linux versions), repeatedly toggling the visibility of the 2elements on the page adds an increasing number of extra blank lines.

Can someone tell me what's going on here and what I'm doing wrong?

thanks-
Larry Prikockis
p.s. note that the code on the above site will NOT work in IE- I know this.

1 reply

by fywdude

Unless you are trying to support pre 6 Netscape and pre 5.5 IE, there is no need to write seperate code for IE and Mozilla.

For this type of behavior it is better to drop the tables and use more CSS to position the elements exactly where you wantthem with the same code for most major, recent browsers.

This discussion is closed to new replies.