Hello Nile,
I was watching the z-intex vid, thank you so much, I actually start understanding how the css positioning works.
I have a question:
in my css style file:
Code:
body { margin:114px 0 0 0; line-height:16px; font-family: Tahoma, Arial; background: url(images/body_top_bckg.jpg) no-repeat center top #171c20; color:#bed7e6; font-size:11px; }
I want to hide an image behind the body_top_bckg.jpg?
The current code in html:
Code:
<script type="text/javascript" src="http://www.examples.com"></script><a href="http://www.example.com/" target="_blank">
<img src="http://examples/trace.gif" alt=" Tracker" border="0" /></p>
HERE is what I did:
Code:
body { margin:114px 0 0 0; line-height:16px; font-family: Tahoma, Arial; position:relative; z-index:1; background: url(images/body_top_bckg.jpg) no-repeat center top #171c20; color:#bed7e6; font-size:11px; }
#badge {position: absolute; left:550px; top:100px; z-index:9000; background:url(http://examples/trace.gif);}
and in html:
Code:
<div id="badge">
<script type="text/javascript" src="http://www.examples.com"></script><a href="http://www.example.com/" target="_blank">
<img src="http://examples/trace.gif" alt=" Tracker" border="0" /></p>
It did position the image, but the trace.gif is over the the other!!! I changed the values of the z-index, it didn't move!!
What should I do??
Thanks in advance,
Bookmarks