Hi all,
i have used this include function , but i am not getting proper output,
the included files are one below the other i want it to be side by side,
this is code i have written whats wrong with this code,?

``````<html>
<style type="text/css">
table.one
{
table-layout: automatic
}
</style>
<body  bgcolor="#DBFCBF">
<table class="one" width="100%" border="1" height="0" cellspacing="0" cellpadding="0">
<tr >

</tr>
<tr>
<td >

<?php include "autoaltosignin1.html";?>
</td>
</tr>

<tr>
<td>

<?php include "autoaltosignin1.html";?>
</td>
</tr>

<tr>

<td>&nbsp;  </td>
<td>&nbsp;  </td>

</tr>

</table>
</body>
</html>
``````

Edited 3 Years Ago by happygeek: fixed formatting

If you want them one side by side, you have to place them on the same row (TR tag).

For instance

``````<table>
<tr>
<td><?php include "autoaltosignin1.html"; ?></td>
<td><?php include "autoaltosignin1.html"; ?></td>
</tr>
</table>``````

If you want them one side by side, you have to place them on the same row (TR tag).

For instance

``````<table>
<tr>
<td><?php include "autoaltosignin1.html"; ?></td>
<td><?php include "autoaltosignin1.html"; ?></td>
</tr>
</table>``````

Hi ,

i have done this but still its coming one below the other.
what to do?

Specify td width.

``````<tr>
<td width=33%><?php include "1.html"; ?></td><td width=33%><?php include "2.html"; ?></td><td width=33%><?php include "3.html"; ?></td>
</tr>``````

Specify td width.

``````<tr>
<td width=33%><?php include "1.html"; ?></td><td width=33%><?php include "2.html"; ?></td><td width=33%><?php include "3.html"; ?></td>
</tr>``````

Hi,
see i have written the code like this but i am not getting the proper output,
<html>
<title>
Auto Alto System
</title>
<body bgcolor="#DBFCBF">
<tr >

</tr>
<tr>
<td width ="30%"> <?php include "autoaltosignin1.php";?> </td>
<td width="30%"> <?php include "autoaltohotdeals.php";?> </td>
</tr>

</table>
</body>
</html>

I've tested this code with another page and it seems fine. Is there a element in this pages that could override de table especification? Maybe those pages have some script or flash causing the problem. You could try it with another page. Maybe is the browser, I tested it with mozilla, ie had some weird diferences regarding javascript, maybe it has on the implementation of tables to.