Bob,
Let me make sure I understand correctly. Do you want a transparent
background, such that both divs are visible, one on top of the other? If
you're trying to lay down a cover image over the canvas, it seems to me
you'd want the top image to be opaque...
As far as aligning the images goes, the top and left positions of the
canvas and its width and height can be accessed via JavaScript. Setting up
the cover image to have those same dimensions is trivial from there.
Cheers, Mike
On Tuesday, March 5, 2013, Robert Hanson wrote:
> CSS gurus:
>
> How do I make it so that I can have two divs, one exactly on top of each
> other, and BOTH "visible"? Do I have to know the absolute position of
> top/left on the page?
>
> Right now I see a cover image and a canvas, but I want to see only the
> cover image, because the applet is there (can't be "display:none"), but is
> hidden by the image?
>
> Bob
>
>
>
>
>
> --
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> Chair, Chemistry Department
> St. Olaf College
> Northfield, MN
> http://www.stolaf.edu/people/hansonr
>
>
> If nature does not answer first what we want,
> it is better to take what answer we get.
>
> -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
>
>
--
---
Michael Evans
Department of Chemistry
University of Illinois, Urbana-Champaign
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users