JamesCliff
Programmer
Hi all,
Im constructing a layout for my dads website on dreamweaver. The images were made in photoshop and sliced up as i thought right. I then built the table structures and added the images to the dreamweaver constructed layout.
Now, i have a problem. There is a gap between an image on the navigation bar. When i constructed the layout in dreamweaver and added the images everything looked fine and worked how i expected to. However now i have uploaded the index.php page to test it, and filled the home.php page with test data to see if the index.php main content box expands and it does expand. However when it expands the gabs appear between the image on the left hand side.
When there is no content in the main content box the page is normal and looks fine.
Check the URL's below to understand more what i mean:
My problem when there is content:
When there is no content all works fine:
I need the page to expand in height with the more content that is displayed, however i need rid of the gap. The navigation bars on the left are set to auto expand as well.
The code for my index.php is below:
Any help would be greatly appriciated here as i dont understand where i have gone wrong.
Thanks alot
Jim
Im constructing a layout for my dads website on dreamweaver. The images were made in photoshop and sliced up as i thought right. I then built the table structures and added the images to the dreamweaver constructed layout.
Now, i have a problem. There is a gap between an image on the navigation bar. When i constructed the layout in dreamweaver and added the images everything looked fine and worked how i expected to. However now i have uploaded the index.php page to test it, and filled the home.php page with test data to see if the index.php main content box expands and it does expand. However when it expands the gabs appear between the image on the left hand side.
When there is no content in the main content box the page is normal and looks fine.
Check the URL's below to understand more what i mean:
My problem when there is content:
When there is no content all works fine:
I need the page to expand in height with the more content that is displayed, however i need rid of the gap. The navigation bars on the left are set to auto expand as well.
The code for my index.php is below:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Peter Cliff - Agricultural and Sports Turf Engineer</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel='stylesheet' href='config/style.css' type='text/css'>
</head>
<body bgcolor="#FCFCE1">
<?php
if (!$_GET["page"]) {
$_GET["page"] = "home";
}
$content = $_GET["page"] . ".php";
if (!file_exists($content)) {
$content = "404.php";
}
?>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3"><img src="images/index_01.gif" width="780" height="139"></td>
</tr>
<tr>
<td width="126" valign="top" background="images/index_02.gif"> <br>
<img src="images/index1_08.gif" width="106" height="21"><br>
<br>
<img src="images/index1_11.gif" width="106" height="21"><br>
<br>
<img src="images/index1_13.gif" width="106" height="21"><br>
<br>
<img src="images/index1_15.gif" width="106" height="21"><br>
<br>
<img src="images/index1_17.gif" width="106" height="21"><br>
<br>
<img src="images/index1_19.gif" width="106" height="21"><br>
<br>
<img src="images/index1_21.gif" width="106" height="21"><br>
<br>
<img src="images/index1_23.gif" width="106" height="21"><br>
<br>
</td>
<td width="18"> </td>
<td width="636" rowspan="3" background="images/index_04.gif"><?php include($content); ?></td>
</tr>
<tr>
<td width="126"><img src="images/index_07.gif" width="126" height="142"></td>
<td width="18"> </td>
</tr>
<tr>
<td width="126" valign="top" background="images/index_02.gif"><br>
<img src="images/index1_29.gif" width="106" height="21"><br>
<br>
<img src="images/index1_32.gif" width="106" height="21"> <br>
</td>
<td width="18"> </td>
</tr>
<tr>
<td colspan="3"><img src="images/index_10.gif" width="780" height="64"></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
Any help would be greatly appriciated here as i dont understand where i have gone wrong.
Thanks alot
Jim