...

View Full Version : table within a table



runnerjp
03-04-2007, 03:50 PM
hey guys gotta problem

ok im useing tables as layouts ( i know its bad but thats wat im duin lol)
so i have my body layout that each page will form


<table width="100%" summary="main body">
<tr>
<td width="15%" align="left" valign="top" bgcolor="#FFFFFF">
<center><?include("include/info.inc.php"); ?></center>

<?include("$menu");?></td>
<td align="left" valign="top" bgcolor="#FFFFFF">

<div id="linedown">
<img src="http://www.runnerselite.com/images/linedown.jpg" alt="linedown"></div>
<?
if (file_exists($content)) {
include($content);
} else {?><?echo $content;?>
</p><?} ?> </td>
</tr>
</table>

the content area is where everything will go yet when i try and add my othe rcontent (in a table again)

<table width="100%">
<tr>
<td align="left" valign="top"><h1 align="left"><img src="../images/runner.jpg" alt="runner" width="127" height="155" align="left"/></h1>
<h1 align="center"> Welcome Back To RunnersElite!</h1>
<center> <?
include("include/adminerr.inc.php");
if($auth[error]) { include("include/messages/index_unverified.inc.php"); }
else { include("include/messages/index_verified.inc.php"); } ?></center>
<a href="../register.php"><img align="left" src="../images/bemem.gif" alt="signup" width="280" height="250" border="0" /></a>
</td>
<td align="left" valign="top"><?include("include/loginbox.inc.php"); ?></td>
</tr>
</table>


see the content now goes below the other table but i want it in the table...what do i do?

FullMetal_Ed
03-04-2007, 04:06 PM
you would have to nest the content table inside the other.


<table>
<tr>
<td>
<table>
<tr>
<td>
<!-- Content -->
</td>
</tr>
</table>
</td>
</tr>
</table>

runnerjp
03-04-2007, 04:15 PM
that worked ty :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum