Jump to content

Help with div layers


Recommended Posts

Okay, I asked for help on another message board but no ones even bothered to reply. I don't know if my question is difficult or if I'm actually doing everything right and something unknown is happening to ruin the layout I'm coding.

 

Anyways, I'm coding a div layout and for the first time ever, I'm using z-index. I know how to use it and what it does and I even went to the TryIt Editor on W3Schools to test out my code and see that I'm doing it right, but the friggin' thing just doesn't work out. Every time the z-index is set to '-1' like it needs to be, it just disappears when it should simply hide behind the layer of text I placed over top of it. I even copied and pasted W3Schools exact code without altering it one bit and even that doesn't display correctly.

 

Please, someone help me out with this.

 

Oh, and here's the code. I basically stripped everything but what I'm having problems with out of it to see if something else was interfering but that didn't help either.

<html>
<head>
<title> Site Title </title>
</head>
<body>

<img alt="" src="images/04.gif" style="position:absolute;top:0px;left:285px;z-index:-1;width:495px;height:170px;border:0px;" />
<p>Content goes here.</p>

</body>
</html>

Link to comment
Share on other sites

  • 3 weeks later...
I prefer you to use dreamweaver which wont trouble you and is also easy to use.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...