Grow your CSS skills. Land your dream job.

CSS Tables

  • # April 1, 2009 at 10:26 pm

    What are peoples thoughts on CSS Tables? They seem easy enough to use. Is anyone using them yet?

    Rob
    # April 2, 2009 at 3:29 am

    when you say CSS tables, what exactly do you mean? Tables styled with CSS or maybe using the display option? And what are you using the tables for? lol

    # April 2, 2009 at 6:40 pm

    I feel turned off by the whole idea of them right now, but I’ll need to let it simmer for a while and do a lot more hands on testing. The big question to me is: why?

    So you can now code with a bunch of divs and have it behave just like a table. Why not just use table tags instead? Because they are div’s that is somehow better code? It’s still source-order-dependent and requires you to re-define all the display properties of all those divs. Where is the true advantage?

    As an aside, they aren’t supported in IE 7, so it’ll be many many years before they can be widely used anyway (not that that should be an argument against them).

    Rob
    # April 2, 2009 at 7:23 pm

    Oh so it is the whole turning a div into a table with CSS thing. Yea I don’t really get it either… tables already exist, divs do a fine general structure job as they are… as far as I can see its a little redundant. Maybe I’m missing something…

    box
    # April 3, 2009 at 4:28 am

    The problem for me with using CSS-Tables is the extra mark up required to make it work. It’s something I’d played around with long before Rachel Andrew’s book was released and I felt it too big a compromise to add divs to make a layout behave how I’d like it to, particularly when less divs and a few floats worked just as well. I was intrigued at how Rachel Andrew was going to get around this code-bloat problem, so I bought the book. And she didn’t solve the problem as far as I’m concerned. Her code is as bloated as mine was – nowhere near the level of using actual table tags of course, but bloated never the less. For me, applying purely stylistic markup is undesirable, particularly when identical results can be achieved with fewer and more meaningful HTML elements. So for the time being, I don’t use the CSS table property.

    # April 25, 2009 at 7:46 pm
    "chriscoyier" wrote:
    The big question to me is: why?

    To appease those with an unyielding hatred for tables… and so they can say "I never use tables." Oh the world and their love of extremes. ;)

    If I’ve got a contact form or datasheet that would easily be done in a table, I use a table. No need for tag-discrimination.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".