dcsimg
www.webdeveloper.com
Results 1 to 11 of 11

Thread: Asking for opinions on tables:

  1. #1
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,741

    Asking for opinions on tables:

    I once told someone that in rare cases, it is proper to nest tables. Would you guys agree?

  2. #2
    Join Date
    Oct 2007
    Location
    Adelaide, Australia
    Posts
    31
    why would you ever need to do that?

  3. #3
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,741
    Quote Originally Posted by matthewjumpsoff View Post
    why would you ever need to do that?
    I run a fantasy sports site. On one page, there is information about each player arranged as tabular data. One column is "Basketball Statistics." This, IN AND OF ITSELF, is tabular data. Therefore, a nested table would be at least semantically correct.

  4. #4
    Join Date
    Oct 2007
    Location
    Adelaide, Australia
    Posts
    31
    ah right... well <table> is a valid child element of <td>, and in the situation you described it does seem to make sense to structure ur html like that

  5. #5
    Join Date
    Sep 2008
    Location
    Mexico
    Posts
    786
    You can definitely nest tables.
    But I would avoid it if possible, it can get VERY messy!
    Why not have "independent" tables for each of your stats sections?

  6. #6
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,741
    Quote Originally Posted by opifex View Post
    You can definitely nest tables.
    But I would avoid it if possible, it can get VERY messy!
    Why not have "independent" tables for each of your stats sections?
    Probably because it would get hard to follow. Each player had a stat table, and there are, I think, 8 players in this ONE table.

  7. #7
    Join Date
    Sep 2008
    Location
    Sarasota, Florida
    Posts
    99
    Table is not a four-letter word. I can nest tables inside tables inside tables with no difficulty whatsoever. These days, of course, I only use css for layout (we must be politically correct!)

  8. #8
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,741
    Quote Originally Posted by ixora View Post
    Table is not a four-letter word. I can nest tables inside tables inside tables with no difficulty whatsoever. These days, of course, I only use css for layout (we must be politically correct!)
    Thing is, it had absolutely zip to do with layout. It had to do with a subset of information for each player.

  9. #9
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,741
    Now that the page is complete, I can demonstrate. The nested tables are in the statistics column:

    http://fba.furtopia.org/main_roster.php

  10. #10
    Join Date
    Sep 2008
    Location
    Sarasota, Florida
    Posts
    99
    Opps! How can I get all this egg off my face?

  11. #11
    Join Date
    Sep 2004
    Location
    At the corner of WALK and DONT WALK
    Posts
    1,741
    Quote Originally Posted by ixora View Post
    Opps! How can I get all this egg off my face?
    Admitting it's there is a good start.

    Seriously, though. I think my example is one of the rare times that a nested table is semantically correct.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles