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. Instromaniac

    Instromaniac Peon

    Messages:
    48
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #81
    Practically that's true, but semantically not. But indeed people are free to use what they want. But if you design a website for a client with a table layout you don't have to complain if the client comes back after a while saying that he misses out a large chunk of potential clients because of inaccessibility or that you have to spend days to understand the layout's code.

    Nobody's forcing things, only recommending.SEMrush
     
    Instromaniac, Jan 17, 2006 IP
    SEMrush
  2. ian_ok

    ian_ok Peon

    Messages:
    551
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #82
    I'm such a good webmaster I didn't know DIV's where so useful and can be used for tables......

    Guess I'll be doing some testing with a div table at somepoint!

    Cheers.

    Ian
     
    ian_ok, Jan 17, 2006 IP
  3. Instromaniac

    Instromaniac Peon

    Messages:
    48
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #83
    That's not really it ian_ok.
    Tables should be used for tabular data, in that case divs can't replace them. But divs can and should replace tables for layouts.
    A div alone can't do that of course, the point is that you use CSS to make your layout instead of tables, the divs are merely the glue between the CSS and your data which you wish to style.

    I'm just telling this because I often see things like this:
    <div class="title">This is a title</div>
    and in css
    .title {font-weight:bold; font-size:1.4em}

    That's not correct. Only use divs of there isn't another element that makes sense. In this case h1, h2, etc. makes much more sense than a div.

    Anyway, the problem with the whole discussion is that "DIVs vs TABLEs" isn't the right topic. In reality it's mixed presentation and markup vs separated presentation and markup or presentational html (fonts, tables for layouts) vs CSS. It's not the div tag that creates the layout, it's CSS :)
     
    Instromaniac, Jan 17, 2006 IP
  4. ian_ok

    ian_ok Peon

    Messages:
    551
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #84
    Thanks for that Instromaniac......

    ...Leaves me with many questions about my websites! Nevermind they work on all browser (except for one of my current posts where a new page is failing in Netscape!).

    Guess I need sometime to sit down and study it a bit more!
     
    ian_ok, Jan 17, 2006 IP
  5. Instromaniac

    Instromaniac Peon

    Messages:
    48
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #85
    Yeah, I know it leaves many open questions :p
    If your websites work and if you're happy with it there's no need to go editing them, except if you really want to. There's nothing wrong with a page using tables, as long as you're happy with it :)

    But if you do want to learn more about it take the CSS tutorial here:
    http://www.w3schools.com/
    And after that look for tutorials on "CSS positioning" and the CSS tutorials at http://www.alistapart.com/
     
    Instromaniac, Jan 17, 2006 IP
  6. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #86
    I believe I already did. Advice to FLAN: Less preaching and more reading.
     
    minstrel, Jan 17, 2006 IP
  7. Serious

    Serious Peon

    Messages:
    185
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #87
    Same anwser than the_pm.
    Use the right tool.
    (easier to say than to do)
     
    Serious, Jan 17, 2006 IP
  8. FeelLikeANut

    FeelLikeANut Peon

    Messages:
    330
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #88
    No, you didn't.

    What any technology was designed to do is a historical fact. True?
    A technology may do more than it was originally designed for. True?
    Tables were generally accepted for layout when there was no other alternative. True?
    CSS was designed specifically for describing presentation. True?
    A table layout bloats code more so than a CSS layout. True?
    A table layout is less adaptable to change (flexible/maintainable). True?
    A table layout is less portable (screen readings, devices with low graphic capability). True?
    Interesting comment from a person with a habit of posting statements that contradicts the absolute facts of the situation. These have been examples of either ignorance or deception on your part.
     
    FeelLikeANut, Jan 17, 2006 IP
  9. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #89
    Repeating BS ad nauseum does not make it, FLAN.

    As I said, do what you want... just stop preaching.
     
    minstrel, Jan 17, 2006 IP
  10. Gostt

    Gostt Member

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #90
    After laying out one of my first CSS site (and largest site I've created) using DIV's I'd say I'm a fan of it. It's great to be able to reuse pre-loaded CSS in various spots instead of having the user have to download the same code over and over. The benefits of using div's outweigh the con's IMO although some stuff will make you pull your hair out (like getting a site to look the same in IE, FF & Opera) :)
     
    Gostt, Jan 17, 2006 IP
  11. FeelLikeANut

    FeelLikeANut Peon

    Messages:
    330
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #91
    No facts. No rebuttals. Just insults and rants: so shocked. :rolleyes:
     
    FeelLikeANut, Jan 17, 2006 IP
  12. MattBeard

    MattBeard Peon

    Messages:
    259
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #92
    Of course you shouldn't be trying to do that - you should make it look right in all browsers ;)
     
    MattBeard, Jan 18, 2006 IP
  13. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #93
    Debating with a zealot or a block of wood is totally pointless, FLAN. The facts are already there. You however prefer to keep repeating your catechism over and over ad nauseum. It bores me.
     
    minstrel, Jan 18, 2006 IP
  14. FeelLikeANut

    FeelLikeANut Peon

    Messages:
    330
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #94
    My repeated statements always occur in response to your repeated statements. I had initially spent a mere two sentences stating my position (#9). Since then my posts have been correcting the inaccurate information that you repeat—factual information is objectively either right or wrong. Others in this thread have stated they prefer tables, and I had no response to that; any choice is fine as long as it is an informed one. I have also had no response to your own posts, minstrel, that express an opinion. But posts that contain false information will get a response from me. And if it is false information that you have posted before, then you are sure to get a response that you have heard before. That's simply how it goes.
     
    FeelLikeANut, Jan 18, 2006 IP
  15. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #95
    *yawn*

    As I said, boring and pointless. Enjoy the rest of the thread.
     
    minstrel, Jan 18, 2006 IP
  16. Serious

    Serious Peon

    Messages:
    185
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #96
    Just let's say that I fully agree with FeelLikeANut.
    Now, let's switch to another topic: do you still use physical tags?
     
    Serious, Jan 18, 2006 IP
  17. Instromaniac

    Instromaniac Peon

    Messages:
    48
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #97
    What do you mean with physical tags?
     
    Instromaniac, Jan 19, 2006 IP
  18. Serious

    Serious Peon

    Messages:
    185
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #98
    <b> versus <strong>
    physical vs logical
     
    Serious, Jan 19, 2006 IP
  19. Instromaniac

    Instromaniac Peon

    Messages:
    48
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #99
    Oh, I call them presentational :)

    Well I hardly ever use presentational tags, only use tags when it makes sense to use it.
    <b> Never makes much sense since you can use CSS to make your text bold. Strong shouldn't be used either for making text bold but to emphasize your text. If a screen reader encounters <strong> it will read it louder or put more emphasize on it.
     
    Instromaniac, Jan 19, 2006 IP
  20. Amsterdam

    Amsterdam Well-Known Member

    Messages:
    361
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #100
    If we didn't have compatibility issues with different browsers then we wouldn't have this vote. DIVs (CSS) are by far the best way to go for layout imho, however TABLEs are reliable and simple to implement.

    T
     
    Amsterdam, Jan 22, 2006 IP