html table problem

Discussion in 'HTML & Website Design' started by Arcos, Sep 20, 2006.

  1. #1
    I hope this is a simple question but it is really doing my head in!!

    I am not the greatest at HTML but thought that fixing the size of a table would be a piece of cake. Yet when I take the page and modify it with next content amd photos the table size changes. If I set the table size manually it doesnt seem to make any difference.

    Anyone help me set a table size and keep it?

    Thanks
     
    Arcos, Sep 20, 2006 IP
  2. eXe

    eXe Notable Member

    Messages:
    4,643
    Likes Received:
    248
    Best Answers:
    0
    Trophy Points:
    285
    #2
    Please post the HTML here.
     
    eXe, Sep 20, 2006 IP
  3. jrlane7

    jrlane7 Peon

    Messages:
    17
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    if the table is getting bigger then I would say the contents within the table are causing your problem. Example a pic that is 200 pixils wide put into a table set at 100 pix will force the table to 200.

    Rick
     
    jrlane7, Sep 21, 2006 IP
  4. GuitarFix

    GuitarFix Peon

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    where is the HTML??
     
    GuitarFix, Sep 21, 2006 IP
  5. Arcos

    Arcos Peon

    Messages:
    474
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks for that Rick

    So how can I force the table to stay at 100 pix and the pic reduce to 100 pix?
     
    Arcos, Oct 3, 2006 IP
  6. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #6
    Quite simply, you don't use tables for layout. But, if you just must, remember that tables accomodate their content, not the other way round. The problem from your perspective is that tables are not fixed size. Even when you specify a width or height, it's a suggestion as far as the rendering engine is concerned—that's the way the specs are written.

    You set the image dimensions first. Then the cell won't have to adjust to it.

    cheers,

    gary
     
    kk5st, Oct 3, 2006 IP
  7. huesped

    huesped Peon

    Messages:
    153
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #7
    hi, I have the same problem with text. I have a 200 px table, and when I test it everything looks fine, but if I insert text into it instead of wrapping it to the size of the table it makes the table bigger with an horizontal scrollbar. Any ideas :)?
     
    huesped, Oct 3, 2006 IP