Re: CSS display property and tables

I think that:

"If there is no alternative to using HTML markup, you can put
role="presentation" on the <table> element. This will stop the table
semantics from being mapped to the accessibility API [2]."

is good advice, I will follow, when we have clear cut examples of
tables for layout.

Cheers
Jesper




On Sun, Apr 26, 2015 at 2:25 PM, Jesper Tverskov <jesper@tverskov.dk> wrote:
> I have published a blog-like article, “When even nested tables are
> just great”, at my website:
>
> http://www.friendlytest.com/doc/en.When_even_nested_HTML_tables_are_just_great.html
>
> I would like to hear the Accessibility Community, if there is
> consensus about the use of the CSS display property and the table
> related values, “table”, “table-row” and “table-cell” for short.
>
> In my opinion, tables should be made with table markup. Using e.g.
> “div” elements and the display property to make tables, is not a
> shortcut to get rid of the very last table of design.
>
> If a table of design is necessary as an exception to the rule then use
> a HTML table. It is simply too far out and misuse of the display
> property, confusing, and bound to be less widely supported, to use
> “div” and the display property as a substitute for a HTML table of
> design?
>
> Cheers
> Jesper Tverskov

Received on Monday, 27 April 2015 11:09:13 UTC