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.

Which is the latest trend?

Discussion in 'CSS' started by tptnyc, Jul 30, 2008.

  1. #1
    Now-a-days, what is the latest trend by the developers to make pages using <Tables> or <div> and what is the right way to do it?
     
    tptnyc, Jul 30, 2008 IP
  2. priyakochin

    priyakochin Banned

    Messages:
    4,740
    Likes Received:
    138
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <div> is the latest trend and it will continue.
     
    priyakochin, Jul 30, 2008 IP
  3. andrewgjohnson

    andrewgjohnson Active Member

    Messages:
    180
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    DIVs are used over TABLEs - not because they are a trend but because they are the superior method.

    Learn CSS/XHTML to produce TABLE-less layouts.
     
    andrewgjohnson, Jul 30, 2008 IP
  4. BlueDevil

    BlueDevil Peon

    Messages:
    19
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yeah, tables are becoming deprecated in my eyes. CSS and divs are the way forward.
     
    BlueDevil, Jul 30, 2008 IP
  5. scubita

    scubita Peon

    Messages:
    5,550
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Man, since i learned CSS almost 2 years ago, damm, i dont even want to talk about tables :D
     
    scubita, Jul 30, 2008 IP
  6. andrewgjohnson

    andrewgjohnson Active Member

    Messages:
    180
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #6
    TABLEs have a place definitely. I went through a phase where I didn't use TABLEs at all, when really displaying tabular has no second best method. I see this a lot nowadays, don't be anti-TABLEs. Rather be pro-DIVs
     
    andrewgjohnson, Jul 30, 2008 IP
  7. Website Tiger

    Website Tiger Guest

    Messages:
    351
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    <div id=""> will probably never end lol
     
    Website Tiger, Jul 30, 2008 IP
  8. scubita

    scubita Peon

    Messages:
    5,550
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Of course tables serve tabular data :) But if you're webdeveloping a regular site you don't need tables, that's the fact.
     
    scubita, Jul 30, 2008 IP
  9. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Ha! table hell muhahahaha... whether you have tables on a site depends on what you're showing : )
     
    Stomme poes, Jul 31, 2008 IP
  10. Astroman

    Astroman Well-Known Member

    Messages:
    2,355
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    135
    #10
    Divs for layout, tables for data.
     
    Astroman, Jul 31, 2008 IP
  11. astersmitem

    astersmitem Peon

    Messages:
    35
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I used to make web sites with tables, and I was good at it - but let me tell you; when I learned XHTML and CSS a few years ago was when the world of web development really opened up to me. Table-less layouts are faster to make, easier to make, easier to understand, harder to break and more compatible across browsers. Using <div>s instead of <table>s with CSS is most definately the way to go. <table>s, however, still have their place. I still use <tables> for data output, as <div>s don't have a (clean) way of adjusting height/width to match others in the same column/row to look right for most data output.
     
    astersmitem, Jul 31, 2008 IP
  12. andrewgjohnson

    andrewgjohnson Active Member

    Messages:
    180
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #12
    You'd be surprised how often tables are called for and how often they AREN'T used because the developer has TABLEphobia.
     
    andrewgjohnson, Jul 31, 2008 IP
  13. mspider

    mspider Guest

    Messages:
    231
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    What about data...you need nothing else but <table>!
     
    mspider, Jul 31, 2008 IP
  14. andrewgjohnson

    andrewgjohnson Active Member

    Messages:
    180
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #14
    Define data though...

    If you were displaying blog entries you would use <h1> and <p> - is a blog entry not data?
     
    andrewgjohnson, Jul 31, 2008 IP
  15. astersmitem

    astersmitem Peon

    Messages:
    35
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Tabular data, being like a chart - or a formatted list of something.
     
    astersmitem, Jul 31, 2008 IP
  16. andrewgjohnson

    andrewgjohnson Active Member

    Messages:
    180
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #16
    Err... try anything that has at least 2 columns and at least 2 rows...

    A list should be defined using OL or UL.
     
    andrewgjohnson, Jul 31, 2008 IP
  17. astersmitem

    astersmitem Peon

    Messages:
    35
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #17
    There you go, columns and rows lol
     
    astersmitem, Jul 31, 2008 IP
  18. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #18
    Ah, they do if you use the CSS display property:
    #element {
    display: table;
    }
    and table-row, table-cell... they just don't work in IE at the moment (IE8 I think will) : (

    I don't usually consider it a table with only two columns (depends)-- I'll use a definition list or some other list for that. Beyond that, though, tables fer sure. But not just plain <table><tr><td>blah</td></tr></table> but real tables with thead th tbody scope="col" scope="row" (or "headers") etc.
    I think that's important too... is someone who is doing a table wants to do it the right way, then tables need to be properly learned as well. It sure took me a while to get it down, and I still struggle with some things now and then.
     
    Stomme poes, Aug 1, 2008 IP
  19. steelfrog

    steelfrog Peon

    Messages:
    537
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Tabular data requires tables; that's the proper usage for tables. The problem is that designers (including myself a few years ago) were using it to design website frames.

    Being anti-table is pointless; learning when and where to properly use a table is the key.
     
    steelfrog, Aug 1, 2008 IP
  20. kyllle

    kyllle Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #20
    basically there is a purpose for css and a purpose for table layout all depending on the task you are faced with, i agree when faced with the task of styling a webpage css is most def the way to go but if you are faced with the task of html emails etc tables have to used as lots of very weird and wonderful things can happen otherwise. Im a css man through and through but my jobs presents me with the historical factors of tables also which is nice
     
    kyllle, Aug 1, 2008 IP