1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

<DIV> vs <TABLE>

Discussion in 'HTML & Website Design' started by latehorn, Jan 6, 2006.

?

What's your opinion

  1. I use only <DIV>

    38 vote(s)
    33.9%
  2. I use only <TABLE>

    20 vote(s)
    17.9%
  3. I use a mix between aka sementism

    54 vote(s)
    48.2%
  1. #1
    Some divistic extremists want to shoot people that make table sites, others hate divs and love tables.
     
    latehorn, Jan 6, 2006 IP
  2. Sorror

    Sorror Active Member

    Messages:
    376
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Sorror, Jan 7, 2006 IP
  3. the_pm

    the_pm Peon

    Messages:
    332
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #3
    divs are the correct technology for page layout and defining objects on the page (along with other block-level objects, i.e. h* tags, paragraphs, etc.). Tables are the correct technology for tabular data. Use them both and use them well. It's not so hard :)
     
    the_pm, Jan 7, 2006 IP
  4. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #4
    They both have there uses, so i still use them both as needed.
     
    just-4-teens, Jan 7, 2006 IP
  5. pairbrother

    pairbrother Well-Known Member

    Messages:
    386
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    110
    #5
    divs offer more flexibility, u can change the layout of the complete site by just changing a few things in the css!
    but tables are not that bad, many sites still use that for layout.

    its just that when a few yrs back when ppl started learning html, div tags were not covered in most of the tutorials, maybe because they were not introduced back then and ppl started designing there pages using table tags
     
    pairbrother, Jan 7, 2006 IP
    Colleen likes this.
  6. KC TAN

    KC TAN Well-Known Member

    Messages:
    4,792
    Likes Received:
    353
    Best Answers:
    0
    Trophy Points:
    155
    #6
    I use <div> after i picked up CSS :)
     
    KC TAN, Jan 7, 2006 IP
  7. nfzgrld

    nfzgrld Peon

    Messages:
    524
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I use divs almost exclusively, sometimes even to layout tabular information. For instance, the layout of the subdirectory listings on the front of axelis.com is all divs. That is an exception though, for something like that I would usually use tables, but I wanted to see if I could do it with divs. Turns out it worked pretty well.
     
    nfzgrld, Jan 7, 2006 IP
  8. Alonso

    Alonso Guest

    Messages:
    47
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Hi dudes,.

    Hey, did anyone using divs ever find out that the text within the div was layed out in a way that was wrong? And you compared this on other browsers and you saw that the other browser got it right?
     
    Alonso, Jan 7, 2006 IP
  9. FeelLikeANut

    FeelLikeANut Peon

    Messages:
    330
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #9
    FeelLikeANut, Jan 7, 2006 IP
    Colleen likes this.
  10. stuw

    stuw Peon

    Messages:
    702
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #10
    there are a very few instances that I have found a table better than using divs, and this does include creating tables of data. However I will accpet the fact that I am maybe being over zealous with my use of div.

    From a practical point of view, when I moved a quite large site from an entirely table layout to 100% div layout I found I used 6Gb to 8Gb of bandwidth a month less, even though visitor numbers and page views continued to rise.
     
    stuw, Jan 7, 2006 IP
  11. latehorn

    latehorn Guest

    Messages:
    4,676
    Likes Received:
    238
    Best Answers:
    0
    Trophy Points:
    0
    #11
    divs are just overlapping all the time
     
    latehorn, Jan 7, 2006 IP
  12. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #12
    What the heck is "I use a mix between aka sementism" supposed to mean? :confused:
     
    minstrel, Jan 8, 2006 IP
  13. Acer

    Acer Well-Known Member

    Messages:
    112
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    133
    #13
    I use both. I use DIV usually, but for larger blocks of tabular data, I find it easier to use table/tr/td etc. than to keep track of all those nesting divs.

    --A--
     
    Acer, Jan 8, 2006 IP
  14. NetMidWest

    NetMidWest Peon

    Messages:
    1,677
    Likes Received:
    151
    Best Answers:
    0
    Trophy Points:
    0
    #14
    This thread is way too political for me. :D
     
    NetMidWest, Jan 8, 2006 IP
  15. anty

    anty Member

    Messages:
    16
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #15
    I have some sites with table based layouts, but now I only design sites with css layouts. tables are only used to format tabular data and that's what I'm trying to use them for :]
     
    anty, Jan 8, 2006 IP
  16. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #16
    Absolute nonsense. Use tables forwhatever you wish to use them for. There's nothing wrong with using tables for layout, other than pompous and pointless snobbery.

    Search engines and spiders don't care one way or another. Neither do your visitors.

    If it bothers you to use tables for layout, don't do it. it's a matter of personal preference. That doesn't mean there's anything wrong at all with making a different choice. End of debate.
     
    minstrel, Jan 8, 2006 IP
  17. Acer

    Acer Well-Known Member

    Messages:
    112
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    133
    #17
    In practice, isn't a <table> just a specialized kind of <div>?
    That's how I think of it.
    There's no plans to depreciate <table> tags in CSS3 or anything, right?
     
    Acer, Jan 8, 2006 IP
  18. Lpspider

    Lpspider Well-Known Member

    Messages:
    2,216
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    160
    #18
    i use div's
     
    Lpspider, Jan 8, 2006 IP
  19. FeelLikeANut

    FeelLikeANut Peon

    Messages:
    330
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Tables for layout ruins accessibility. Some businesses, organizations, and especially government anything Web sites will often require their Web site to be accessible to even the handicapped.
    You seem to be working under the assumption that certain kinds of people don't exist in this world—they do.
    As I have mentioned above, your choice affects more than just you. More thought than just your own preference should go in to the decision.

    In addition, good semantic design (which means no tables for layout) offers many benefits for maintainability and adaptability. These benefits are not as noticable when you first build your site, but any changes or even a complete redesign to be made later will be much easier.
     
    FeelLikeANut, Jan 9, 2006 IP
  20. SEbasic

    SEbasic Peon

    Messages:
    6,317
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #20
    Minstrel man - We could carry on again but I seem to remember posting something that contradicts precisely what you're saying last time we discussed this....

    Tables ARE NOT SUPPOSED to be used for laying out designs - only tabulature information.

    They were never designed to be used for making layouts, but during the 90's ended up being used that way.

    This was wrong..
    Visually impaired users care very much about it :)
     
    SEbasic, Jan 9, 2006 IP