Click to See Complete Forum and Search --> : Netscape 4.79 problem with CSS and positioning.


asid_onhopo
September 2nd, 2002, 03:45 AM
hi,
i came across a set of Netscape problems with CSS at the site ("http://www.the-cool-place.co.uk/javascript/tutorial/javascript4.html"). The 2nd problem listed is:

===========================
If you want to change the properties of a div using JavaScript you must set it's position property to either absolute or relative at design time. If you use static or do not set a position attribute any attempt to access the properties from JavaScript will result in an error message telling you that the layer has no properties.
===========================

Now this is exactly what i want to do, and i keep getting the above mentioned problem. I HAVE to use "position: static;" because if i use absolute/relative, my input boxes etc. are not displayed at all for some reason in Netscape 4.79, maybe because i need to have and have nested tables within a HTML form and my input box is within a <TD>.

Does anybody know a workaround/fix for this problem ? Any help will be appreciated...

Thanks in advance,
Asid.

websmith99
September 24th, 2002, 03:01 PM
Netscape 4.x's implementation of CSS is very buggy.

Basically, whenever a <div> is nested within a <td>, the likelihood
of the CSS properties working becomes slim.

However, I've found that Netscape 4.x does handle some nested
styles much better if the CSS classes are defined in an external
.css file as opposed to inline in the document within the <head>
section.