SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    SitePoint Guru coiL's Avatar
    Join Date
    Sep 2001
    Location
    QLD, Australia
    Posts
    666
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    tables:how many is too many?

    I was just looking at the source for a fairly simple looking site. However I counted almost 15 tables!

    How many tables on(in) a page is too many? Was just interested in everyones opinions on this.
    coiL
    "cradled in the learning curve"

  2. #2
    SitePoint Wizard
    Join Date
    Jul 2001
    Location
    The Netherlands
    Posts
    2,617
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I my opinion, as long as a chunk of code is easy to understand, the amount of tables can be as big as you like, when totally necessary of course. Usually, you should be able to create a site using a small amount, say three of four, large tables, and a few smaller ones.

    I use small tables a lot when I am trying to get things to align right, they are really useful for that.

    But basically, try to keep those tables down to a minimum, but I have no special requirement about that amount.

  3. #3
    midnight coder
    Join Date
    Dec 2000
    Location
    The flat edge of the world
    Posts
    838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just make sure none of the tables are over three levels deep and it should be alright, although do try to minimize the number of tables when possible.

  4. #4
    SitePoint Wizard silver trophy redemption's Avatar
    Join Date
    Sep 2001
    Location
    Singapore
    Posts
    5,269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i'd say use as many tables as u need to keep things nice in their proper positions but dun leave put a table if there's no use for it...

    hmmm... that's common sense actually...

  5. #5
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Robo's got the right answer. The number of tables (non-nested) on a page doesn;t really matter. However, when you start nesting those tables and using percentages for your measurements then you're starting to ask for trouble.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  6. #6
    SitePoint Addict
    Join Date
    Apr 2001
    Location
    Nottingham, England.
    Posts
    209
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I use tons of tables. Mainly for image alignments. As long as you notate each table else you might forget which is for what
    Absence of evidence is not evidence of absence.

  7. #7
    SitePoint Wizard
    Join Date
    Oct 2001
    Location
    Tucson, Arizona
    Posts
    1,858
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: tables:how many is too many?

    Originally posted by coiL
    How many tables on(in) a page is too many? Was just interested in everyones opinions on this.
    One table is too many - use style sheets instead.

  8. #8
    Happy Holidays !! Paul S's Avatar
    Join Date
    Mar 2001
    Location
    Mexico
    Posts
    1,287
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Re: tables:how many is too many?

    Originally posted by colon//
    One table is too many - use style sheets instead.
    That's only a beautiful dream with the current browsers , maybe in the near future.

  9. #9
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's a pseudo dream...the newer browsers support it, but not perfectly.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  10. #10
    SitePoint Wizard johnn's Avatar
    Join Date
    Mar 2001
    Location
    Southern California, USA
    Posts
    1,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello,
    I'm a newbie. I see we're not ready to replace all tables with css, then when should I use tables and when to use css? when you start to layout a webpage, do you use tables?
    Thank you in advance,
    John

  11. #11
    SitePoint Wizard johnn's Avatar
    Join Date
    Mar 2001
    Location
    Southern California, USA
    Posts
    1,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think I've got it.
    Table are most useful for maintaining the positional relationship in floating and flexible pages. On the other hand CSS positioning is used for rigid layouts and for elements which will be dynamically re-position.


Bookmarks

Posting Permissions

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