Blurredream
09-20-2004, 08:45 PM
Please help me, I'm new to divs and I can't get it to work right.
<html>
<head>
<title>Site Title..</title>
</head>
<body bgcolor="#FFFFFF" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
<table align="center" width="700" height="100%" border="0" cellpadding="0" cellspacing="0" background="index_02.jpg">
<tr>
<td width="700" height="580">
<img src="index_01.jpg" width="700" height="580" border="0">
</td>
</tr>
<tr>
<td valign="top" width="700">
<!-- CONTENT BEGINS HERE -->
<div id=layer1 style="position:absolute; top:207; left:407; width:300; height:300; z-index:1; padding:5px; border: #000000 0px solid;">
Content..............
</div>
<!-- CONTENT ENDS HERE -->
</td>
</tr>
</table>
</body>
</html>
The problem is that when I change the resolution of my screen my div moves. It doesn't stay where I want it to.. I tried removing the "absolute;" but now it is stuck in one area and not where I want it. Any suggestions?
<html>
<head>
<title>Site Title..</title>
</head>
<body bgcolor="#FFFFFF" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
<table align="center" width="700" height="100%" border="0" cellpadding="0" cellspacing="0" background="index_02.jpg">
<tr>
<td width="700" height="580">
<img src="index_01.jpg" width="700" height="580" border="0">
</td>
</tr>
<tr>
<td valign="top" width="700">
<!-- CONTENT BEGINS HERE -->
<div id=layer1 style="position:absolute; top:207; left:407; width:300; height:300; z-index:1; padding:5px; border: #000000 0px solid;">
Content..............
</div>
<!-- CONTENT ENDS HERE -->
</td>
</tr>
</table>
</body>
</html>
The problem is that when I change the resolution of my screen my div moves. It doesn't stay where I want it to.. I tried removing the "absolute;" but now it is stuck in one area and not where I want it. Any suggestions?