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 4 of 4

Thread: table alignment

  1. #1
    7mX
    7mX is offline
    Junior Member
    Join Date
    Apr 2003
    Posts
    24
    Member #
    1129
    i have been having troubles getting my tables aligned right. what i want is one of the tables to be on the right and one on the left i used div's and still cant get the tables to be parallel to each other and on opposite sides. heres the link to the page im trying to fix *click*

    edit*

  2.  

  3. #2
    Senior Member splufdaddy's Avatar
    Join Date
    Feb 2003
    Location
    Boston, MA
    Posts
    4,488
    Member #
    735
    I'm a fan of tables over DIV's personally. I'm pretty sure you can do this using DIVs, but I'm not a DIV expert so here's how to do it using tables. If you just want two boxes next to each other you could use one table, but here's what you want, two tables next to each other. I nested the two tables in one big table:
    Code:
    <table>
      <tr>
        <td>
          <table>
            <tr>
              <td>Table 1 contents</td>
            </tr>
          </table></td>
        <td><table>
            <tr>
              <td>Table 2 contents</td>
            </tr>
          </table>
        </td>
      </tr>
    </table>

  4. #3
    Senior Member Maverick's Avatar
    Join Date
    Sep 2003
    Location
    Hoboken, NJ
    Posts
    351
    Member #
    3253
    Heres how to do it with DIVs:

    Code:
    <html>
        <head>
            <title>Floating Divs</title>
            <style type="text/css">
                #div1{ FLOAT: left;}
            </style>
        </head>
        <body>
            <div id="div1">Div 1 Contents</div>
            <div id="div2">Div 2 Contents</div>
        </body>
    </html>
    And thats it! Remember, the divs will only be as large as they need to be if they are not explicitly given a height and width in their respective CSS ID properties.
    www.stevenspoker.com
    "You can't lose what you don't put in the middle, ... but you can't win much either." -Mike McDermott (Rounders)

  5. #4
    7mX
    7mX is offline
    Junior Member
    Join Date
    Apr 2003
    Posts
    24
    Member #
    1129
    thanx u guys


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 04:28 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com