<div dir="ltr">Hi -<div><br></div><div>The table header and the table data have to be within the same table or they don't know about each other. You can use divs inside the table to define styles. IE is probably more fast and loose with this that Firefox and Chrome are. If they don't match up after that then you may have to fiddle with padding and colspans.</div>
<div><br></div><div>s/</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 23 January 2014 13:43, Gary Stainburn <span dir="ltr"><<a href="mailto:gary.stainburn@ringways.co.uk" target="_blank">gary.stainburn@ringways.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi folks.<br>
<br>
I'm having a go at a home grown solution for having a scollable table with<br>
locked column headers.  I've stripped the problem back to it's simplest.<br>
<br>
I have two DIV's, one containing a table with the column headers in, one with<br>
a table containing the data.<br>
<br>
Despite both being defined the same, the TD widths on the two tables differ,<br>
which means that the headers don't line up.<br>
<br>
Can anyone tell me why please?<br>
<br>
BTW, it works in IE8 but  not in Firefox.  I'm guessing I need to set<br>
something in CSS but as both div's and tables are set up the same I don't<br>
know what.<br>
<br>
The last TD is 20px wider in the header, as is the table, to make room for the<br>
scroll bar in the table.  However, I have removed this difference and it<br>
didn't affect the problem.<br>
<br>
<a href="http://www1.ringways.co.uk/test_table.html" target="_blank">http://www1.ringways.co.uk/test_table.html</a><br>
<span class="HOEnZb"><font color="#888888"><br>
Gary<br>
<br>
--<br>
Gary Stainburn<br>
Group I.T. Manager<br>
Ringways Garages<br>
<a href="http://www.ringways.co.uk" target="_blank">http://www.ringways.co.uk</a><br>
<br>
_______________________________________________<br>
Wylug-help mailing list<br>
<a href="mailto:Wylug-help@wylug.org.uk">Wylug-help@wylug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/wylug-help" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/wylug-help</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Twitter: @sfgreenwood<div>"TBA are particularly glib"<br></div>
</div>