Christian Montoya wrote: > On 10/26/06, Thierry Koblentz <[EMAIL PROTECTED]> wrote: >> I don't agree :-) >> IMO, the goal should be to deliver the *cleanest* document possible, >> with the least amount of structural hack, hook, etc. >> In the example I posted, one can't get cleaner than that. The only >> issue I see is that screen-readers end up with a table. >> But I have an idea about this: what about going one step further >> than styles switchers, why not implementing *behavior* switchers? I >> mean, any fail-safe solution that targets visual browsers could be >> turned off. I'd say that would be more valuable for many users than >> giving them a choice between different "skins" or "text-size" ;-) >> This document is semantic and has nothing extra to parse: >> http://www.tjkdesign.com/test/ >> on top of that, it is possible to make the list display across >> different number of columns without having to edit the markup nor >> the stylesheet; actually, there is *no* stylesheet ;) >> Disabling the script is all what is needed for screen-readers to >> speak the links in the proper sequence. >> Think about it... ;-) > > Oh, I've been thinking about it. I've been wondering three things:
> 1. Can't you get the same result by using display:table? (granted, it > would be hard) To begin with, IE is "display:table"-challenged (actually, that's what got me started [1]). And the problem would be the same, with a CSS solution one would have to plug hooks depending on the number of lists/columns to display. > 2. Wouldn't it be better to use the dom to split the list into two > lists and display them side by side? (how does the table work if there > is an odd number of items?) But that's the whole problem. Why trying to generate something half decent? I think it is better to implement a solution that is perfect for visual browsers (what is more cross-browsers friendly than a table?) and implement some "switch" mechanism to disable the script when needed (screen-readers). Regarding the table with odd number of items, it is just a matter of doing more Maths to create empty cells to the left of the last ones. This is just something I quickly put together, I don't think there is any real use for it... yet ;-) > 3. How does this expect to deal with user agents that look at > *generated source* and not original source? I know, I mentionned this in my previous message. But as a side note, table for layout is not always a problem [1] (see checkpoints 5.3 and 5.4) . Anyway, what I'm saying is that we have "skip" links, "increase contrast" links, "increase text-size" links, why not adding a "turn-off visual enhancement" kind of link ;-) [1]: http://www.tjkdesign.com/articles/make_an_html_list_look_like_a_table.asp --- Regards, Thierry | www.TJKDesign.com ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *******************************************************************
