Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Z-Index, Fine in IE, Disappeared in FireFox?? 2

Status
Not open for further replies.

IEAN

Programmer
Sep 13, 2003
122
US
Hi all,

I used a z-index:-1 for one of my images, it shows up as it is intended to in IE, but in FireFox, the image disappeared... Any idea?

Thanks!
 
Yes, don't use -1!

I think FireFox (correctly) places negative indexes behind the body and therefore they can't be seen.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Picture is clearly behind everything else, say html element which has z-index of 0. So your image cannot be seen. Try using positive values and just give your other elements a higher z-index.
 
Thanks guys! Fixed! By the way, any idea why the image is positioned lower on Firefox? The image shifted about 0.5" down in Firefox...

{z-index:1;position:absolute;top:340;left:580;}

Please advise, thanks!
 
Where exactly did you want to position your image? 340px from the top? 340%? 340cm? 340pt? How is the browser to know? Add some units to the numbers.

Other than that, it is hard to say what could be wrong with the positioning without seeing the rest of the code -- do you have a link?
 
Excellent, thanks Vragabond and Ca8msm for all your help! [thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top