Helpful Information
 
 
Category: CSS Help
Netscape 6 and CSS display woes

A question if I may?

Has anyone used javascript to change the display style of a <div> tag to 'block successfully in Netscape 6? Or, does anybody know a workaround?

I know that Netscape 4.x didn't like javascript messing with the display style of <div>s. Or at least it could hide them, then never bring them back. Supposedly Netscape 6 does what Netscape 4 didn't, though everytime I try it the browser crashes.

It's not essential as I can just have Netscape be unreactionary (as always), but it would be nice.

Anybody?

the CSS "display: block" works for me in NS6 just fine.

This works for me too:

document.getElementById('divname').style.display = 'block';


Working example:

http://www.xs4all.nl/~ppk/tests/olddisplay.html

Shall check it out tomorrow, ta!

:confused:

Very very strange, it works fine on your page, but not on mine. I wonder.... IE does everything fine NS6 doesn't. The code you had was pretty much the same as mine except for a few page particulars. One thing is that you don't specify anything in the style to start with.

.....

Nope, just tried removing the original style 'display' attribute. But it dissappears fine, then crashes.

:confused:










privacy (GDPR)