1 reply [Last post]
jonniejoejonson
jonniejoejonson's picture
User offline. Last seen 1 year 23 weeks ago. Offline
newbie
Timezone: GMT+1
Joined: 2008-04-07
Posts: 8
Points: 10

The following should produce a green square over the top of both a yellow stripe and an orange stripe.
Please note this is not my actual problem but it is the principal cause of the problem i am having.

In explorer the green square is positioned under the orange stripe.. this should not be so.. any ideas why?.. if i remove the position relative from the orange stripe it works... however i need the orange stripe to be position relative.... any ideas...

Just saying Explorer is *beep* is not an acceptable answer!! even though it may be correct...

<div style="position:relative; float:left; width:100%; height:100px; background:yellow;">
<div style="position:absolute; z-index:1000000; top:0; left:0; width:250px; height:250px; background:green;"></div>
</div>
 
<div style="position:relative; float:left; width:100%; height:100px; background:orange;">
</div>

jonniejoejonson
jonniejoejonson's picture
User offline. Last seen 1 year 23 weeks ago. Offline
newbie
Timezone: GMT+1
Joined: 2008-04-07
Posts: 8
Points: 10

answer you z-index on the

answer you z-index on the relative positioned divs. well done me.