![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
#3
| |||
| |||
|
|
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 |
#4
| |||
| |||
|
|
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? |
#5
| |||
| |||
|
|
Marcus Otmarsen wrote: 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? Easily. Read up on absolute positioning and z-index. Transparency isn't widely supported (ie IE). Take a look at my site (sig) in Firefox and find a page that needs vertical scrolling - then watch the header bar as you scroll. |
#6
| |||
| |||
|
|
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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |