Possible Duplicate:
Using TABLES and INCLUDES
I'm trying to to a simple page organized with various PHP includes inside tables.
My problem is: when I put a <?php include('header.php');?>
in <td>
of the tables it creates a space between them.
Here is the test page that I'm trying to do: http://www.dmaispublicidade.pt/_dmaisprojecto
Is a index.php with a table calling others .php files (that even have tables and other includes)?
This white spaces between images it supposes to not be there!
Can anybody help?
Example of index.php:
<!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>
<title>d+ projecto</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/estilos.css" rel="stylesheet" type="text/css">
</head>
<body><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td><?php include('header.php'); ?></td>
</tr>
<tr align="center">
<td><?php include('corpo.php'); ?></td>
</tr>
<tr align="center">
<td><?php include('footer.php'); ?></td>
</tr>
</table>
</body>
</html>
Example of header.php:
<table width="950" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="imagens/provisorio/header.jpg"/></td>
</tr>
</table>
Example of the css (that is called inside de head of index.php):
@charset "utf-8";
body {
margin: 0px;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
When we saw the source code in the test page, we can saw that is inserting (I don't know how) a TBODY in the document; I don't know why. Is there something to remove the TBODY by CSS?