Alain Roger wrote:


On Fri, Mar 6, 2009 at 4:16 AM, David Muir <davidkm...@gmail.com <mailto:davidkm...@gmail.com>> wrote:

    So you're saying you need to use js to sync the two tables so that
    you can use different styling for the header? Sounds like you
    should be updating your html markup instead.
    Header cells should be using th tags.
    <table>
        <thead>
           <tr>
                <th>Header1</th><th>Header2</th>
            </tr>
        </thead>
        <tbody>
           <tr>
              <td>Cell1</td><td>Cell2</td>
            </tr>
            .... etc...
        </tbody>
    </table>


Sorry David, you missed the point. i have 2 tables. One has only header so <thead><tr><th>...</th></tr></thead>
and the other one as only data cell <tbody><tr><td>...</td></tr></tbody>
what you wrote is a typicall table in html.

A.
I knew you had 2 tables, and sorry if I came across as condescending (a lot of people don't realize tables can have a header section). I'm just trying to figure out why you need to have it split into two tables. Are you trying to have the header cells follow the page as you scroll? If so, you'd be better off using jQuery to detach the thead portion, and sync that instead. That way it'll gracefully degrade with browsers/screen-readers without javascript. My brother was working on a jQuery plugin that does this.

http://brentmuir.com/table/

Cheers,
David

Reply via email to