On Sat, 28 Jan 2006 22:54:07 -0000, Andreas Boehmer [Addictive Media]
<[EMAIL PROTECTED]> wrote:
<tr><th>Fruits</th>...
<tr><th><span>Fruits > </span>Apple</th>...
<tr><th><span>Fruits > </span>Orange</th>...
<tr><th><span>Fruits > </span>Lemon</th>...
The problem with this solution is that it allows for only two levels of
hierarchy (parents:children = fruit:apples). But the application we are
building is more like a file/folder structure in Windows Explorer - it
can have an endless number of levels. Every folder can have a
subfolder.
So you need more levels... What if you just use some simple numbering:
<tr><th><span>1 </span>Fruits</th>...
<tr><th><span>1.1 </span>Apple</th>...
<tr><th><span>1.1.1 </span>Red apple</th>...
<tr><th><span>1.1.2 </span>Green apple</th>...
<tr><th><span>1.1.2.1 </span>Extra green apple</th>...
<tr><th><span>1.1.2.2 </span>Medium green apple</th>...
<tr><th><span>1.2 </span>Orange</th>...
<tr><th><span>1.3 </span>Lemon</th>...
This should make the hierarchy pretty clean to both screenreader and
text-browser users.
There is one usability problem still: the contents of <th> elements
are centered by default in most browsers, making the table look like
this:
1 Fruits Add Edit Delete
1.1 Apple Add Edit Delete
1.1.1 Red apple Add Edit Delete
1.1.2 Green apple Add Edit Delete
1.1.2.1 Extra green apple Add Edit Delete
1.1.2.2 Medium green apple Add Edit Delete
1.2 Orange Add Edit Delete
1.3 Lemon Add Edit Delete
Not very comprehensible... The solution would be to use <td> instead:
1 Fruits Add Edit Delete
1.1 Apple Add Edit Delete
1.1.1 Red apple Add Edit Delete
1.1.2 Green apple Add Edit Delete
1.1.2.1 Extra green apple Add Edit Delete
1.1.2.2 Medium green apple Add Edit Delete
1.2 Orange Add Edit Delete
1.3 Lemon Add Edit Delete
Maybe it makes the table a bit harder to understand for screenreader
users, but it surely adds clarity to all the other users.
Hopefully it doesn't make me look like someone who is very into
table-based solutions :)
Rene Saarsoo
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************