Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Nov 2006
    Posts
    601
    Thanks
    1
    Thanked 2 Times in 2 Posts

    table within a table

    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

    Code:
      <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)
    Code:
    <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?

  • #2
    New Coder
    Join Date
    Dec 2006
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you would have to nest the content table inside the other.
    Code:
    <table>
     <tr>
      <td>
    <table>
     <tr>
      <td>
    <!-- Content -->
      </td>
     </tr>
    </table>
      </td>
     </tr>
    </table>

  • #3
    Regular Coder
    Join Date
    Nov 2006
    Posts
    601
    Thanks
    1
    Thanked 2 Times in 2 Posts
    that worked ty


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •