HighDots Forums  

Defining <DIV> on top of another <DIV> pane with transparency?

Javascript JavaScript language (comp.lang.javascript)


Discuss Defining <DIV> on top of another <DIV> pane with transparency? in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Marcus Otmarsen
 
Posts: n/a

Default Defining <DIV> on top of another <DIV> pane with transparency? - 08-04-2004 , 06:56 PM






Ok, the situation is as follows:

I defined a <DIV> like:

<div id="myid" style="position: absolute; height: 10; width: 10;"><img src="images/object.gif" height=10 width=10></div>

This pane is used to move an object around on the web page by a javascript.

As long as I define no further <div> pane everything works fine.

Then (due to other requirements) I introduced some other <div> panes similar to

<div style="position: absolute; top: 0; left: 0; width: 400px; height: 1000px;
background-image: url(image/mybackround.gif)"><img src="images/mypic.gif"></div>

From this moment on I cannot see the object defined in the first <div> statement any more.

Hmm, I guess that this is because the later <div> panes "overwrite" the first one.

Can two <div> panes on the same area co-exist?

Or can I drop one <div> pane on top of the other with transparency property?

Marcus


Reply With Quote
  #2  
Old   
cruiserweight
 
Posts: n/a

Default Re: Defining <DIV> on top of another <DIV> pane with transparency? - 08-05-2004 , 01:15 AM






Quote:
I defined a <DIV> like:

div id="myid" style="position: absolute; height: 10; width: 10;"><img src="images/object.gif" height=10 width=10></div

Then

div style="position: absolute; top: 0; left: 0; width: 400px; height: 1000px;
background-image: url(image/mybackround.gif)"><img src="images/mypic.gif"></div
try giving the secondary div an id, too. otherewise it becomes
impossible to tell them apart. absolutley positioned divs can overlap,
define background-color:tranparency to acheived the desired affect.


Reply With Quote
  #3  
Old   
cruiserweight
 
Posts: n/a

Default Re: Defining <DIV> on top of another <DIV> pane with transparency? - 08-05-2004 , 02:02 AM



Quote:
I defined a <DIV> like:

div id="myid" style="position: absolute; height: 10; width: 10;"><img src="images/object.gif" height=10 width=10></div

Then

div style="position: absolute; top: 0; left: 0; width: 400px; height: 1000px;
background-image: url(image/mybackround.gif)"><img src="images/mypic.gif"></div
try giving the secondary div an id, too. otherewise it becomes
impossible to tell them apart. absolutley positioned divs can overlap,
define background-color:tranparency to acheived the desired affect.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.