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


<td colspan="2"><?php include "autoaltoheader.html";?></td>
</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>

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 "autoaltoheader.html"; ?></td>
    <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 "autoaltoheader.html"; ?></td>
    <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>
<head>
<title>
Auto Alto System
</title>
</head>
<body bgcolor="#DBFCBF">
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr >

<td colspan="2"><?php include "autoaltoheader.php";?></td>
</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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.