Simple tables question...

Discussion in 'Programming' started by lespaul00, Jan 19, 2008.

  1. #1
    Hello,

    I have two queries on my dynamic page that create information that goes into two separate tables. I want to be able to place the tables side by side, but the only way I can seem to get it to do so, is just create 1 table with twice as many cells. I would like to keep them separate, as the dynamic content that governs the size of the tables will change.

    So, this is what i'd like it to look like:

    Table 1:.................................................Table 2:
    ______________________........________________________
    |.....QUERY 1 RESULT......|.......|........QUERY 2 RESULT......|
    |.....QUERY 1 RESULT......|.......|........QUERY 2 RESULT......|
    |.....QUERY 1 RESULT......|.......|........QUERY 2 RESULT......|
    |.....QUERY 1 RESULT......|.......|....................................|
    |.....QUERY 1 RESULT......|.......|....................................|
    |.....QUERY 1 RESULT......|.......|....................................|
    |_____________________|.......|_______________________|

    Thanks.
     
    lespaul00, Jan 19, 2008 IP
  2. rem75

    rem75 Peon

    Messages:
    3
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Couldn't you just nest the tables into 1 large table.

    You would have 1 main table with 2 columns and 1 row. In each column you would start a new table. That would allow them to be side by side but create their own table.

    <table>
    <tr valign="top">
    <td>
    <table>
    <tr><td>loop around this row for the 1st query</td></tr>
    </table>
    </td>
    <td>
    <table>
    <tr><td>loop around this row for the 2nd query</td></tr>
    </table>
    </td>
    </tr>
    </table>
     
    rem75, Jan 19, 2008 IP
    lespaul00 likes this.
  3. lespaul00

    lespaul00 Peon

    Messages:
    283
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yup, that would do it! Sorry for the stupid question... thanks!
     
    lespaul00, Jan 19, 2008 IP