Anne van Kesteren

No reasons for tables, even Zeldman switched

In the end of 2003 it was already unacceptable to use tables, unless you were Zeldman. Today, even Jeffrey Zeldman is no longer using tables for layout. Congrats!

Comments

  1. Make it early 2002, and you'll be closer.

    Posted by Moose at

  2. Now hype the latest: drop <a/>, in favour of XMLHttpRequest! It reduces the bandwith use even more than switching from XHTML to HTML!

    Posted by Robbert Broersma at

  3. robbert...in fairness, i don't see anybody dropping <a/> on any sites that cater for the public in favour of XMLHttpRequest, but i'm sure anne will report it in due course, when it's actually happening...

    Posted by patrick h. lauke at

  4. XMLHttpRequest is a good alternative for A, but it's not a replacement. The way to implement it, is to have a onclick handler attached to the A element, which returns false and does the XMLHttpRequest in the background.

    That way, you can provide a good href to user agents that doesn't support XMLHttpRequest, but give those who do, a snappier and better browsing experience. Everybody gets a piece of the cake, and we can all eat it too.

    Posted by Asbjørn Ulsberg at

  5. I've been asking everyone everywhere, but haven't gotten an answer yet: Can CSS do five columns? I tried for a while and gave up.

    Not two, not three, but five columns, side-by-side. Floats go crazy on browsers too narrow, and other options all seem to have their own drawbacks.

    I'm almost to the point of utter cynicism about CSS advocates -- who seem to pick and choose their battles, avoiding the ones they can't win -- but I still believe in the promise of CSS. Too bad I have to completely redesign blogcritics.org in ways that will annoy all of my users in order to go pure-CSS!

    Posted by Phillip Winn at

  6. To risk going slightly off-topic, but: have you tried absolute positioning? It has saved me a couple of times. And it works like a charm. 5 is a lot, though.

    Posted by Rob Mientjes at

  7. A few CSS Zen Garden designs do it, although it may not be what you're looking for (it invokes a horizontal scrollbar).

    Posted by David House at

  8. I'd like to see any usable 5-column layout (tables or not) that works in a narrow browser window.

    If you lay out the columns with floats and specify widths as percentages, it should work as well as can be expected. Wide content in any of the columns will wreak havoc, of course, but I don't see how a table-based layout would fare any better.

    Oh, you want it to work in IE too? Well, that makes it a lot harder. :)

    Posted by Tommy Olsson at

  9. The only five-column layout I know of on a validating site is at The Register - and they still use a table for the central section.

    Posted by RichardPW at

  10. What I suggest you do is use a table to layout your site if none of the current CSS techniques work. This shouldn't be much of a problem if it's only a basic table with no spacer gifs and you use stylesheets to format everything else. As long as you use semantic markup your site will still validate and it will be viewable by your entire audience.

    CSS isn't the correct solution to every problem, at least not yet it's not.

    Posted by Rod Howard at