I am trying to insert an image into my website. I don't want the image to move when changing the browser window size or even a monitor size, I want it to remain in the middle of a specific page. I have seen many websites do this with no problem. Every time I try it, even if I use absolute positioning, it seems to always slide around to the left or to the right. I am using Dreamweaver cs3 suite software. I am sure there are a simple fix to this problem, but I am having a mind boggling time figuring it out. Any help would be greatly appreciated. Thank You.
here is my code, what do I need to input?
here is my code, what do I need to input?
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
background-image: url(/images/buckcollagebg.jpg);
background-repeat:no-repeat;
background-attachment:fixed;
background-position:center;
}
-->
</style>
<link href="/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p align="center"> </p>
<table width="400" border="1" align="center">
<tr>
<td><img src="/images/archer2.gif" alt="" width="346" height="432" /></td>
<td><div align="center"></div></td>
<td> <p> </p>
<p> </p></td>
<td><div align="left"><img src="/images/archer2.gif" width="346" height="432" /></div></td>
</tr>
</table>
<table width="300" border="1">
<tr>
</tr>
</table>
</body>
</html>
Comment