Advertisement

05.10.2008 at 10:28AM PDT, ID: 23391847
[x]
Attachment Details

CSS Z-Index Firefox

Asked by pda4me in Cascading Style Sheets (CSS), JavaScript, Firefox Web Browser

This code works fine in IE with the text overlaying the image fine.  When I test in firefox it does not show the image though.  How can I fix so its cross browser (IE and Firefox)?Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
<html>
<head>
<style type="text/css">
img.x
{
position:absolute;left:0px;top:0px;z-index:-1
}
</style>
</head>
 
<body>
<h1>This is a Heading</h1>
<img class="x" src="media/vig/vig1.jpg" width="868" height="558"> 
<p style="z-index:0">Default z-index is 0. Z-index -1 has lower priority.</p>
</body>
 
</html>
[+][-]05.10.2008 at 11:03AM PDT, ID: 21539995

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Cascading Style Sheets (CSS), JavaScript, Firefox Web Browser
Sign Up Now!
Solution Provided By: robacarp
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.10.2008 at 11:05AM PDT, ID: 21540002

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 11:15AM PDT, ID: 21540032

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.10.2008 at 03:48PM PDT, ID: 21540817

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628