Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
  1. #1
    Senior Member
    Join Date
    Mar 2002
    Location
    Alabama sans the damn flag
    Posts
    263
    Member #
    38
    I need to put two tables side by side. Both tables are the same width, and length and number of elements.

    How do I do This?

    I have the code for both tables already laid out
    DerFarm
    I talk to squirrels.
    Squirrels Answer.

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Unless there's a CSS solution (and there probably is) you can't. The <table> tag implicitly adds a newline.

    You can nest them, however, in another table which would emulate it.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Actually, there is a way. Do something similar to the following:

    Code:
    <TABLE WIDTH="50%" align="left">
    <TR><TD width="100%">Test</TD></TR>
    </TABLE>
    <TABLE WIDTH="50%" align="right">
    <TR><TD width="100%">Test 2</TD></TR>
    </TABLE>
    The left and right align will align the tables to the left and right of the document. These are the parts that matter. Table 1 has to be left aligned and table 2 right aligned. The rest should work fine.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  5. #4
    Junior Member
    Join Date
    Jan 2003
    Location
    Scotland
    Posts
    18
    Member #
    504
    Liked
    3 times
    you could also have a table with 1 row and two cells and in each cell place another table.
    Code:
    <table>
        <tr>
        <td>
             <table>
             </table>
         </td>
         <td>
              <table>
              </table>
          </td>
          </tr>
    </table>
    ...:::battle || idleyouth:::...

  6. #5
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    idleyouth: that's called nesting tables (i.e. what filburt suggested earlier). But it's always good to have a code visual too!
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  7. #6
    Senior Member
    Join Date
    Mar 2002
    Location
    Alabama sans the damn flag
    Posts
    263
    Member #
    38
    yeah, that's what I did. worked like a charm
    DerFarm
    I talk to squirrels.
    Squirrels Answer.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 03:01 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com