View Full Version : Divs


Applesauce17
06-04-2003, 07:06 PM
Could someone tell me what is wrong with this code? I'm trying to get the text to show but it keeps getting covered by the image.

lefty
06-04-2003, 07:12 PM
*pokes* you seem to have forgotten the code :D

Applesauce17
06-04-2003, 07:20 PM
Gah! Thanks lefty, I guess this is yet another side effect of coding for 3 hours straight. (Now if I could only find where I left my soda....) lol Here's the code.

<html>
<head>
<title>Green with Envy...Domain</title>
<link rel="stylesheet" type="text/css" href="http://lucky17.net/style.css">
</head>

<div style="position:absolute; top:0px; left:0px; height:400px; width:300px; z-index:2;">
<img src="http://lucky17.net/domain/index-domain.jpg">
</div>

<div style="top:0px; left:0px;height:200; width:295; z-index:1; overflow:auto;">
<a href="http://lucky17.net/domain/history.html">history</a> <br>
<a href="http://lucky17.net/domain/faq.html">faq</a> <br>
<a href="http://lucky17.net/domain/cliques.html">cliques</a> <br>
<a href="http://lucky17.net/domain/linkme.html">link me</a> <br>
<a href="http://lucky17.net/domain/credits.html">thanks</a> <br>

</div>
</html>

zangerbanger
06-05-2003, 01:07 AM
The div with the higher z-index shows up on top. You need to switch the z-indexes of the image and your text so that the text has the 2 and the image has the 1 :) .

Applesauce17
06-05-2003, 01:56 AM
Doh. Thanks a lot! :D