How deep is too deep for nested tables?

Discussion in 'HTML & Website Design' started by adigitaldreamer, Aug 3, 2005.

  1. #1
    Hi all. Just wondering what you consider to be too deep for nesting tables and putting content in them? Where do you personally draw the line? Obviously tables give you some nice visual options.

    Thanks!

    Brian
     
    adigitaldreamer, Aug 3, 2005 IP
  2. mopacfan

    mopacfan Peon

    Messages:
    3,273
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Personally, I don't go beyond 3 and I only go that far on rare occasions.
     
    mopacfan, Aug 3, 2005 IP
  3. relixx

    relixx Active Member

    Messages:
    946
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    70
    #3
    It all depends on the content you put in them. If I remember correctly, browsers like IE only display the content once the appropriate </table> is found. So imagine you have 3 levels of nested tables, each containing cells with tables in them with pictures and lots of text and the such. The poor user will have to wait for all the content to be downloaded and the table to be closed before anything will show... Luckily Firefox can show tables on the fly, but the majority of people still use IE :(

    You you plan on using a design that requires a bit of nesting I'd say go for divs. It can be more complex to have cross-browser compatibility but the code will be much less.
     
    relixx, Aug 3, 2005 IP
  4. adigitaldreamer

    adigitaldreamer Peon

    Messages:
    79
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I'm not going beyond 3 (at least any more), but I find I have the most layout flexibility with 3. I'll try and aim for 2, but that gets kinds hard the way my layout is.

    Brian

     
    adigitaldreamer, Aug 3, 2005 IP
  5. relixx

    relixx Active Member

    Messages:
    946
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    70
    #5
    Personally I like tables over divs, but you could make a compromise and use both. I've recently designed a site for a friend who was hosting on a cheap, rubbish ISP. Because of this, I was forced to use nested divs to achieve the nice border we came up with (with would have taken 4 nested tables to achieve :( ), then used a table with a nested one for the actual content. It turned out quite nicely :)
     
    relixx, Aug 3, 2005 IP
  6. RectangleMan

    RectangleMan Notable Member

    Messages:
    2,825
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    210
    #6
    1 and that's it
     
    RectangleMan, Aug 5, 2005 IP
  7. dustin

    dustin Peon

    Messages:
    69
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You should also make sure to remember that whatever comes first in the HTML will be considered by search engine spiders to be the main focus of the webpage. This is regardless of how the tables eventually get laid out on the screen.
     
    dustin, Aug 5, 2005 IP
  8. Old Welsh Guy

    Old Welsh Guy Notable Member

    Messages:
    2,699
    Likes Received:
    291
    Best Answers:
    0
    Trophy Points:
    205
    #8
    2 is the limit I set, and even then no dynamic content in there. 3 is pushing it as the spider might choke and not spider the site well, I have seen this happen so many times you would not believe.
     
    Old Welsh Guy, Aug 6, 2005 IP
  9. david_sakh

    david_sakh Peon

    Messages:
    1,225
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I limit myself at 2.

    The range of flexiblity you have at 2 is more than enough for 99% of situations.
     
    david_sakh, Aug 6, 2005 IP
  10. daed

    daed Peon

    Messages:
    93
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I actually like to use a mixture.. for the overall table layout, I never go over 2, everything inside those few layout cells can be easily handled and well-formed in all browsers by using div tags inside each of the cells (with the corresponding layout properties of course).
     
    daed, Aug 7, 2005 IP
  11. exaro

    exaro Peon

    Messages:
    615
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I usually only have two at the most. And the first one is invisible and only there to position the second ones.
     
    exaro, Aug 9, 2005 IP
  12. adigitaldreamer

    adigitaldreamer Peon

    Messages:
    79
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Thanks everyone. Did you know a while back I got lazy and went as deep as 4 or 5? This was before I even thought of SEO, and was doing the whole Dreamweaver thing without looking at code.

    Brian
     
    adigitaldreamer, Aug 9, 2005 IP
  13. redbull

    redbull Active Member

    Messages:
    460
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #13
    Same!

    Dan
     
    redbull, Aug 10, 2005 IP
  14. TopSpin

    TopSpin Peon

    Messages:
    111
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Even if you were to go beyond 2... it makes future updates and maintenance more difficult as the deeper you go, the easier it is to whack out the entire table set with one mis-sized (or tagged) graphic.

    There is elegance in simplicity.
     
    TopSpin, Aug 10, 2005 IP
  15. adigitaldreamer

    adigitaldreamer Peon

    Messages:
    79
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Yup. And the more you actually think about layout using tables, the more you can squeeze out of them using less.

    Brian


     
    adigitaldreamer, Aug 16, 2005 IP
  16. JamieC

    JamieC Well-Known Member

    Messages:
    226
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    138
    #16
    Avoid tables! While using pure CSS design will cost you some time in the short term, it will help you massively in the long term. You will see your bandwidth use decrease, and your time spent on maintenance will drop dramatically. Using CSS means that you will have a SINGLE FILE for all your site's layout / display detail - leaving the content up to your HTML. It goes without saying that CSS design is fantastic for SEO, since the crawler will see only the content, unencumbered by additional, unnecessary markup.

    Just my 2p :)
     
    JamieC, Aug 23, 2005 IP