WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Joining Column Headers with Columns

for

From: Michael Goddard
Date: Oct 18, 2001 2:51PM


Paul.

I believe Tim may have been looking at it like this

<table id="header">
<tr>
<th id="header1">One</th>
<th id="header2">Two</th>
</tr>
</table>

<table id="content">
<tr>
<td headers="header1">Cell One</td>
<td headers="header2">Cell Two</td>
</tr>
</table>

Now is there anyway of associating the td content of the "content" table with the corresponding headers of the "header" table.

Correct me if I snafu this one!

Michael
----- Original Message -----
From: Paul Bohman
To: WebAIM forum
Sent: Thursday, October 18, 2001 4:33 PM
Subject: RE: Joining Column Headers with Columns

Yes, you can associate table headers with cells of different columns. You would have to do something like this:

<table>
<tr>
<th id="header1">One</th>
<th id="header2">Two</th>
</tr>
<tr>
<td headers="header2">Cell one</td>
<td headers="header1">Cell two</td>
</tr>
</table>

The above table would be a bit strange, because the headers are associated diagonally. The cell under the first header is actually associated with the second header. Is this a good thing. Almost always the answer is NO, it is not. Perhaps you have some special circumstance that would make this a good idea. I'd have to see an example to know for sure.

Your description of your project is vague enough that I'm not sure how else to answer at this point.
Paul Bohman
Technology Coordinator
WebAIM (Web Accessibility in Mind)
www.webaim.org
Utah State University
www.usu.edu
-----Original Message-----
From: WebAIM forum [mailto: <EMAIL REMOVED> ]On Behalf Of Tim Harshbarger
Sent: Thursday, October 18, 2001 2:21 PM
To: <EMAIL REMOVED>
Subject: Joining Column Headers with Columns

Hi,
I am about to check the Web AIM site for this information, but since I want to find an answer as quickly as possible for this question, I figure I ought to ask here as well.
We are using tables to create a scrollable multi-column list box. Most of the list box is accessible. The only part which isn't are the headings.
One of the requirements of the solution is that the column headings for this table should not scroll, though the contents should be able to do so. We found one way of doing this by making the column headings a separate table. Are there any ways to associate the column headings in one cell with the columns of another cell? In this very specific instance, the solution only needs to work within JAWS (3.7 or later.)
I know this may seem like a weird question.
Thanks!
Tim
Tim Harshbarger
Disability Support Services
State Farm Insurance Companies
Phone: (3090) 766-0154
E-mail: <EMAIL REMOVED>