Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting a table next to a table

Status
Not open for further replies.

walker11

Programmer
Jan 27, 2005
10
US
I am trying to insert a new table next to the right of a table that I already have. I have the first table width set to a percentage of 55%, and the second table is set at 45%. However when I insert the table, the only place that it will go is below the current table.

Is there a way to insert it next to it instead?

Thank you for any help.
 
You could put the tables inside layers and set absolute position. Or just make one table and put a blank column between the two. Quick and simple ways.
 
Like dmacster said, this is easily accomplished by using a master table with as many columns as you want parallel tables.

Here is a sample:
Code:
<table width="100%">
  <tr>
     <td width="15%">
          <table name="left_table">
              <tr>
                   <td>&nbsp;</td>
              </tr>
          </table>
     </td>
     <td width="70%">
          <table name="center_table">
              <tr>
                   <td>&nbsp;</td>
              </tr>
          </table>
     </td>
     <td width="15%">
          <table name="right_table">
              <tr>
                   <td>&nbsp;</td>
              </tr>
          </table>
     </td>
  <td>
</table>

Hope this helps!


Jose Lerebours


KNOWLEDGE: Something you can give away endlessly and gain more of it in the process! - Jose Lerebours
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top