Anyone know HTML tables (spacing columns)?

Discussion in 'Archived Threads 2001-2004' started by jeff lam, Jul 24, 2002.

  1. jeff lam

    jeff lam Screenwriter

    Joined:
    Jun 4, 2001
    Messages:
    1,798
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    San Jose, CA
    Real Name:
    Jeff Lam
    I'm new to HTML and I'm writing up a description and I want to list things in three columns but they are too close together. How can I space them out a little?

    Example:



    [*]column 1[*]column 1

    [*]column 2[*]column 2

    [*]column 3[*]column 3




    See how the columns are too close together? I would like to space them out a little bit. How do I do this?

    Here is my code. (use () in place of )
    (center)
    (table)
    (TD)(b)(h3)
    (li)column 1
    (li)column 1
    (/td)
    (td)(b)(h3)
    (li)column 2
    (li)column 2
    (/td)
    (td)(b)(h3)
    (li)column 3
    (li)column 3
    (/td)
    (/table)
    (/center)
     
  2. John_Berger

    John_Berger Cinematographer

    Joined:
    Nov 1, 2001
    Messages:
    2,489
    Likes Received:
    0
    Trophy Points:
    0
    Add WIDTH={value} to the (TABLE) parameter.

    To make the table 500 pixels in width, the value must be (TABLE WIDTH=500).

    To make the table take up 75% of the width (to compensate for people with different resolutions), the value must be (TABLE WIDTH=75%).

    Try each value and see what the results are.
     
  3. jeff lam

    jeff lam Screenwriter

    Joined:
    Jun 4, 2001
    Messages:
    1,798
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    San Jose, CA
    Real Name:
    Jeff Lam
    Where does it go in the code?
     
  4. jeff lam

    jeff lam Screenwriter

    Joined:
    Jun 4, 2001
    Messages:
    1,798
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    San Jose, CA
    Real Name:
    Jeff Lam
    [*]column 1[*]column 1

    [*]column 2[*]column 2

    [*]column 3[*]column 3




    Got it!

    Thanks John!
     
  5. John_Berger

    John_Berger Cinematographer

    Joined:
    Nov 1, 2001
    Messages:
    2,489
    Likes Received:
    0
    Trophy Points:
    0
    :wink: Ain't nothin' but a thang! [​IMG]
     
  6. Marshall Alsup

    Marshall Alsup Second Unit

    Joined:
    Jul 9, 2001
    Messages:
    497
    Likes Received:
    0
    Trophy Points:
    0
    You can also add width to your (td) tags. You'd do this to force one column to be wider thant he data inside it.

    -Marshall
     
  7. Andre F

    Andre F Screenwriter

    Joined:
    Dec 9, 2000
    Messages:
    1,486
    Likes Received:
    2
    Trophy Points:
    0
    I've been a fan of div tags lately. They have some other issues but they make placement VERY easy.
    -Andre F
     
  8. DonRoeber

    DonRoeber Screenwriter

    Joined:
    Feb 11, 2001
    Messages:
    1,849
    Likes Received:
    0
    Trophy Points:
    0
    I'm with Andre. It's all about div & span tags, and using stylesheets wherever you can. I just redid my site, and kept my use of tables to an absolute minimum. Sure, it breaks Netscape 4, but I don't mind telling people to use a better browser than that.
     

Share This Page