Anybody got a cure for these css blues?

I have a Jmol layout that works solidly with the resizable applet in Firefox and Safari. However, in Internet Explorer (I know you are all shocked) the div that contains the applet is flat, and does not load the applet (no output at all in the Java console).

The problem is with using div height in percent. IE will not take a percent height *unless* I put it inside of a "container" div that gets its height from elsewhere. Voila, problem solved! However when I put in the container div, Safari's applet disappears. (And the Java console has output that is truncated compared to when the applet loads.) Very frustrating.

Other options -
Feeding in the height in pixels, using inner window width etc., via javascript - I think that would pretty much kill the resizable applet feature, right? Even if not, it would be a challenge because the layout is for a 3rd party and there are other elements on the page that I do not control.

Using position:absolute would also solve the problem, but again, the other content prevents me from using this, I think.
-----

A simplified page that works in IE and not in Safari (that is, it uses a container div) is here:

http://moleculesinmotion.com/containerSimple.htm

The "real" test pages with all the other content and code are available too, in case anyone wants to see. (But the code is crowded and complex here.)

http://moleculesinmotion.com/container.htm
http://moleculesinmotion.com/noContainer.htm

I am about at the point where I try to push for a page without all or most of the other content, but for various reasons, if there is a way to avoid that right now I'd be delighted.

Thanks, any brave souls who have read this far!
Frieda


///////////////////////////////////////////

Frieda Reichsman
Molecules in Motion
Interactive Molecular Structures
http://www.moleculesinmotion.com

///////////////////////////////////////////


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to