"from my point of view it's enough when i "scan" the header table and (whatever is column width in "slave table") to allocate this width to the data cell (slave table). am I wrong ?"
What if the data table's first column is not wider than the header table's first column? then you'll be smushing the header.... I mean the bottom line is: want both columns on each table the same width? then you have to check both! and the code is only checking two rows total (restricted by the "tr:first" in the selector), it's not like you are saving any time or CPU worth mentioning to rip through 6 <td>/<th>'s than 3 of them On Mar 6, 9:48 am, Alain Roger <raf.n...@gmail.com> wrote: > > 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 > > Hi David, > the basic topic is that later on i want to be able to drag and drop > columns... so i was thinking to do it by dragging and dropping column header > and not the whole column. > Moreover, in my header table i have some <TH> elements which contains <div> > representing column splitters :-) > and those TH i do not want to check their width as in my slave_table those > "splitters" will be represented by grid/cell borders. > (basically the whole code is generated by jQuery) > > Alain