how to create two tables side by side with differnt dimentions is it possible.

Discussion in 'HTML & Website Design' started by praveenvijay, Dec 21, 2010.

  1. #1
    i create two tables in same page.first table is created and second table is created that table is shown in below the first table.i want to shown the second table in right side of the first table.
     
    praveenvijay, Dec 21, 2010 IP
  2. xira

    xira Active Member

    Messages:
    315
    Likes Received:
    8
    Best Answers:
    4
    Trophy Points:
    68
    #2
    Yes it is possible, but you need to use CSS and DIVs. Tables are depreciated, unless being used for display of information that require tables (like Excel spread sheets). If you are displaying tables containing info (not images and the mark up of your site) then put each table in a DIV tag.
    <DIV class="table1"><TABLE><TR><TD></TD></TR></TABLE></DIV>
    <DIV class="table2"><TABLE><TR><TD></TD></TR></TABLE></DIV>
    Then use CSS to define the size and position of the containers, and have one "float:left" and the other "float:right". As long as there is enough room within the confines of the content area to put them next to each other, they will sit site by side.
     
    xira, Dec 22, 2010 IP
  3. jonmaster

    jonmaster Peon

    Messages:
    181
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    use table align="left" in the both the tables. I can hear someone shouting donot use align
     
    jonmaster, Dec 22, 2010 IP