Results 1 to 14 of 14

Thread: Question about tables

  1. #1

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    Code:
    <table>
    <tr>
    <td>Cell 1, 1</td>
    <td>Cell 1, 2</td>
    <td>Cell 1, 3</td>
    <td>Cell 1, 4</td>
    </tr>
    </table>
    <table>
    <tr>
    <td>Cell 2, 1</td>
    <td>Cell 2, 2</td>
    <td>Cell 2, 3</td>
    <td>Cell 2, 4</td>
    </tr>
    </table>
    Is there a way I can have these two tables next to each other, rather than one below the other?
    Alcohol & calculus don't mix.
    Never drink & derive.

  2. #2
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877
    Hi Wynd,

    Use the DIV tag, Place the Table inside the DIV Tag.

    Code:
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    
    <body bgcolor="#FFFFFF">
    <div id="Layer2" style="position:absolute; left:478px; top:75px; width:323px; height:33px"> 
      <table width="319" border="1">
        <tr>
          <td width="78">Cell 2, 1</td>
          <td width="78">Cell 2, 2</td>
          <td width="78">Cell 2, 3</td>
          <td width="78">Cell 2, 4</td>
        </tr>
      </table>
    </div>
    <div id="Layer1" style="position:absolute; left:24px; top:75px; width:329px; height:33px"> 
      <table width="319" border="1">
        <tr>
          <td width="78">Cell 1, 1</td>
          <td width="78">Cell 1, 2</td>
          <td width="78">Cell 1, 3</td>
          <td width="78">Cell 1, 4</td>
        </tr>
      </table>
    </div>
    </body>
    </html>
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  3. #3
    Fanatic Member Jerry Grant's Avatar
    Join Date
    Jul 2000
    Location
    Dorset, UK
    Posts
    810
    Or put them both in another table!
    Code:
    <html>
    <head>
    </head>
    <body bgcolor="#FFFFFF">
    <table> 
    <tr>
    <td>
      <table width="319" border="1">
        <tr>
          <td width="78">Cell 2, 1</td>
          <td width="78">Cell 2, 2</td>
          <td width="78">Cell 2, 3</td>
          <td width="78">Cell 2, 4</td>
        </tr>
      </table>
    </td>
    <td>
      <table width="319" border="1">
        <tr>
          <td width="78">Cell 1, 1</td>
          <td width="78">Cell 1, 2</td>
          <td width="78">Cell 1, 3</td>
          <td width="78">Cell 1, 4</td>
        </tr>
      </table>
    </td>
    </tr> 
    </table>
    </body>
    </html>
    Jerry Grant................tnarG yrreJ
    Website: <JG-Design></.net>
    Email: [email protected]
    Working towards a bug free world......
    (Not a Microsoft employee)

  4. #4
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    today i made a nested table that was like 15 or 20 layers deep and it took like 5 minutes to load in NS.

    Not to really help, just a little anecdote i guess.


    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

  5. #5
    Guest

    nested tables eh...?

    sit and draw your table hierarchy on a bit of paper before you start. dreamweaver is quite good for constructing nested tables.

  6. #6

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    Sail, thanks for showing me how
    Alcohol & calculus don't mix.
    Never drink & derive.

  7. #7
    Guest
    or any given WYSIWYG editor. so much easier than trying to count pixels in raw HTML.

  8. #8
    New Member
    Join Date
    Jan 2001
    Location
    India
    Posts
    3

    Thumbs up Solution of table

    Dear wynd.
    here is your solution you can make next to each other.
    By using nested table that means one table in another table see this code<HTML>
    <BODY >
    <TABLE>
    <TR>
    <TD>
    <TABLE border=1>
    <TR>
    <TD>Cell 1, 1</td>
    <TD>Cell 1, 2</td>
    <TD>Cell 1, 3</td>
    <TD>Cell 1, 4</td>
    </TR>
    </TABLE>
    </TD>
    <TD>
    <TABLE border=1>
    <TR>
    <TD>Cell 2, 1</td>
    <TD>Cell 2, 2</td>
    <TD>Cell 2, 3</td>
    <TD>Cell 2, 4</td>
    </TR>
    </TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>


    good by and have a nice day
    remember my in your pray.
    thank you
    if you want to contact me
    [email protected]

  9. #9
    Guest
    in a nest of tables (haha!) how do you align the inner tables to fill the cells of the parent table?

  10. #10
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    think of a parent table as a whole new document, if you want it to fit the size of the document, you use the width attribute:

    Code:
    width="100%"
    if you need more help just ask...

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

  11. #11
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    if you post your code i would be more than happy to fiddle with it. I am not quite sure what you are doing wrong.

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

  12. #12
    Guest
    thanks for the offer, sorry to ignore you, I've been really busy with other stuff at the moment. I'll refrain from posting it just yet, but if I'm still struggling later, I'll be sure to get back to you.

    Thanks again

  13. #13
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    ok

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

  14. #14
    Guest
    Behemoth:

    sounds like you need to use the colspan in the <td>

    <td colspan=3>

    the number means how many columns you want the particular cell to span.
    you can even use rowspan for the same effect but for rows.

    Wynd:

    if you just want the 2 tables next to each other then do it this way it is much easier:

    Code:
    <table align=left border=3>
    <tr>
    <td>Cell 1, 1</td>
    <td>Cell 1, 2</td>
    <td>Cell 1, 3</td>
    <td>Cell 1, 4</td>
    </tr>
    </table>
    <table align= left border=3>
    <tr>
    <td>Cell 2, 1</td>
    <td>Cell 2, 2</td>
    <td>Cell 2, 3</td>
    <td>Cell 2, 4</td>
    </tr>
    </table>
    but why have 2 tables if you are just going to have them next to each other? just make it one table? I know curiosity killed the cat.

    Scoutt

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width