Just curious. I still use tables frequently because a lot of the sites I work on deal with tabular data, including tables complicated enough to have colspan and rowspan. But I’ve seen people go out of their way to stay off tables and was wondering if that trend was continuing.
BTW, in my opinion tables have become more powerful in the role they are intended for - tabular data - since they can be styled consistently and given a consistent table-y appearance (rounding the corners of a table is a PITA but possible).
None of the above because I cannot find an option that best fits. Though I use the TABLE as it was intended to be used for tabular data and not for layout. Though like you said some people have the strange notation TABLE is evil because many people misused them for layout. Obviously for page layout and positioning they are not appropriate.
Though for containing and describing data sets such as; a survey of how many worms are a specific length then that’s appropriate, etc.
I use tables when they provide an easy, flexible way of creating a layout that does what I want it to do, and when the corresponding “better” CSS approach is, frankly, godawful.
I’m not hand-coding HTML - I write software that generates the HTML, and there are dozens and dozens of user options. So, I frequently have layouts that require an indeterminate number of columns (depending upon the options the user chooses), columns that must all line up (vertically and horizontally), that must expand or contract with changes in the size of the viewport, that have to adjust to variable amounts of text (text whose line-wrapping behavior is not predictable because of varying viewport sizes, user choices of font sizes, and so on), that have to adjust to images whose sizes I don’t know in advance, etc., etc.
It turns out that tables are pretty good at this, and CSS bites the big one. Why abandon a good tool in pursuit of pointless religious purity?
I’ve never had problems handling dozens and dozens of user options and getting things to line up with CSS. Indeed, once you get used to it writing the code is much faster. So perhaps it is your skills that are lacking rather than the capability of CSS.
That’s certainly a possibility, but when I see some of the vaunted “solutions” to things like the liquid three-column layout problem, I feel like I’m being visited by the Chef of the Future, showing me how to “core a apple.”
Usually, they are poorly-thought-out tables someone made in a PDF and I am showing that same table in HTML. Needless to say, not only am I getting colspans and rowspans, but if necessary I make use of axis attributes.
I also use tables in forms, when users are actually filling out a table (like a schedule, pricing levels, etc). Though because of how various screen readers deal with those, the form elements have to make sense on their own as if there wasn’t a table, which gets me wondering if that convoluted method by brothercake isn’t less convoluted than what I’m already doing ; )
I’ve never used layout tables, but this is likely more because those were already on their way out when I get started in all this… needless to say, I don’t really have the skills to use layout tables. Guess that might bite me some day doing HTML emails or something… oh well.
I’m with Robert and there is no option for the way I use tables and that is when displaying tabular data or on the rare occasion where the effect can only be done in a table.
There are very few layouts that need tables these days (IE8+) but in the past I think it was OK to use the odd table for that awkward element where multiple equal columns and vertical alignment was required. If the CSS equivalent is too awkward, bloated or convoluted then use a table for that element only. That doesn’t mean use a table for every other elements as well though.
I’ve stopped using them for layout when I stopped supporting IE6, but I do use them to display tabular data.
Unfortunately that’s not in poll options. All poll options imply that people ether use them incorrectly or don’t use them at all, there is no option for people who use tables as they are meant to be used.
So I’ve selected last poll option, even though I disagree with it. Tables are useful and will be useful in future because that’s the logical way to display spreadsheets and other tabular data.