Help with HTML tables

Discussion in 'HTML & Website Design' started by sanjayc, Jul 10, 2006.

  1. #1
    Hi all, I am massively frustrated, I have a webpage with a table in and every time it is refreshed the table appears to be a different size. Is there any code I can use to make it a fixed size. I have had a look around for html tutorials and tried everytning but no joy. The page is created by php but I don't think this should matter. Any help would be very very appreciated. My page is http://www.in4matrix.co.uk/search
    Thanks
     
    sanjayc, Jul 10, 2006 IP
  2. ahref

    ahref Well-Known Member

    Messages:
    1,123
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    170
    #2
    use attribute width=500 for 500 pixel width or width=50% for 50% of browser size.
     
    ahref, Jul 10, 2006 IP
  3. sanjayc

    sanjayc Guest

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks dude but tried both those already, it's a lot more sinister than that. I have been reading the forums here and I'm going to put borders around each table to see where the problem is.
     
    sanjayc, Jul 10, 2006 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    Using invalid markup causes the browser to guess at what you meant. Fix your errors, and debugging will result in a more expected rendering.

    cheers,

    gary
     
    kk5st, Jul 10, 2006 IP
  5. sanjayc

    sanjayc Guest

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yeah, I think it was because I had a few tables without specifying their width. Have been through code now and hopefully fixed it. Thanks for your help folks.
     
    sanjayc, Jul 10, 2006 IP
  6. elusid

    elusid Peon

    Messages:
    890
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It took me forever to get the hang of tables... use css its much much nicer..
     
    elusid, Jul 10, 2006 IP
  7. Albert_chu

    Albert_chu Peon

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    yeah css is the way to go..tables arent really suitable for what your doing there..tables were initially used to structure tabular data n such =P
     
    Albert_chu, Jul 10, 2006 IP
  8. studio

    studio Peon

    Messages:
    54
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    i guess you should define the border because the tables are realy nasty.
     
    studio, Jul 11, 2006 IP
  9. Cratima

    Cratima Peon

    Messages:
    36
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Perhaps you will find out more on your problem by reading:
    http://hotdesign.com/seybold/everything.html ;)
     
    Cratima, Jul 12, 2006 IP
  10. stupidfly

    stupidfly Peon

    Messages:
    129
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I've just started to hear about using css instead of tables (I've been doing websites for quite sometime... I guess I just have been out of the loop). How does that work? What is the benefit? Speed? Maybe you know of a nice little article out there that sums it up.
     
    stupidfly, Jul 12, 2006 IP
  11. CWN

    CWN Banned

    Messages:
    311
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I would reccomend trying CSS.
     
    CWN, Jul 13, 2006 IP