I have two pages. Both of them are supposed to have one table on it with a fixed header. Both pages were tested in IE6. Structurally they are identical. Both have a <div> that wraps a <table> that has a <thead> and a <tbody>. In the first example, the <thead> stays fixed at the top of the div as it scrolls. In the second example the <thead> scrolls away. Could anyone tell me what about the second page makes it not work? Thanks Luminari ###### Working Page ############ <!doctype html public "-//w3c//dtd html 4.0 strict//en"> <html> <head> <SCRIPT> window.onload=fnInit; function fnInit(){ document.getElementById('header').style.setExpression("top", "document.getElementById('tC').scrollTop"); } </SCRIPT> <style> body { width: 90%; } .tContainer { overflow: scroll; overflow-x: hidden; height: 200px; } .tHead { position: relative; background-color: black; color: white; border: 1px black solid; } /*.tBody { overflow: auto; overflow-x: hidden; height: 200px; }*/ table { width: 100%; } </style> </head> <body> <div class="tContainer" id="tC"> <table cellspacing="0" cellpadding="0"> <thead class="tHead" id="header"> <tr class="tHead"> <th>heading1</th> <th>heading2</th> </tr> </thead> <tbody class="tBody"> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> <tr> <td>cell</td> <td>cell</td> </tr> </tbody> </table> </div> </body> </html> ###### End Working Page ########
###### Broken Page ############# <!doctype html public "-//w3c//dtd html 4.0 strict//en"> <html> <head> <SCRIPT> window.onload=fnInit; function fnInit(){ document.getElementById('header').style.setExpression("top", "document.getElementById('tableWrapper').scrollTop"); } </SCRIPT> </head> <body> <DIV id=tableWrapper style="OVERFLOW: scroll; WIDTH: 300px; HEIGHT: 200px; overflow-x: hidden"><TABLE style="HEIGHT: 100%" __eventBits="1" onchange="null" onload="null" onerror="null"> <THEAD style="POSITION: relative" id="header"> <TR> <TH> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="26218263">Header 0</DIV></TH> <TH> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="13554088">Header 1</DIV></TH> <TH> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="2523263">Header 2</DIV></TH> <TH> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="12222848">Header 3</DIV></TH> <TH> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="9186595">Header 4</DIV></TH> <TH> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="15169271">Header 5</DIV></TH></TR></THEAD> <TBODY> <TR> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="3363479">Cell 0,0</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="436958">Cell 1,0</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="32787110">Cell 2,0</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="26999190">Cell 3,0</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="26598837">Cell 4,0</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="11547922">Cell 5,0</DIV></TD></TR> <TR> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="24340171">Cell 0,1</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="29100063">Cell 1,1</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="22081762">Cell 2,1</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="18816786">Cell 3,1</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="971362">Cell 4,1</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="7100172">Cell 5,1</DIV></TD></TR> <TR> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="23179452">Cell 0,2</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="28927374">Cell 1,2</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="16166428">Cell 2,2</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="3204263">Cell 3,2</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="18235855">Cell 4,2</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="13046161">Cell 5,2</DIV></TD></TR> <TR> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="10109394">Cell 0,3</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="12224239">Cell 1,3</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="18929335">Cell 2,3</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="32742489">Cell 3,3</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="3845057">Cell 4,3</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="22178007">Cell 5,3</DIV></TD></TR> <TR> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="22498184">Cell 0,4</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="32567496">Cell 1,4</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="15764751">Cell 2,4</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="10334381">Cell 3,4</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="31593792">Cell 4,4</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="23136580">Cell 5,4</DIV></TD></TR> <TR> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="2094435">Cell 0,5</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="22010742">Cell 1,5</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="12384824">Cell 2,5</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="12216222">Cell 3,5</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="31539877">Cell 4,5</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="27750365">Cell 5,5</DIV></TD></TR> <TR> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="2573832">Cell 0,6</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="30497304">Cell 1,6</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="13610862">Cell 2,6</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="32028273">Cell 3,6</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="31353833">Cell 4,6</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="27350423">Cell 5,6</DIV></TD></TR> <TR> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="6740524">Cell 0,7</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="24246069">Cell 1,7</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="17209502">Cell 2,7</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="18996396">Cell 3,7</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="25073711">Cell 4,7</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="16401384">Cell 5,7</DIV></TD></TR> <TR> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="8238932">Cell 0,8</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="18664654">Cell 1,8</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="907175">Cell 2,8</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="2020896">Cell 3,8</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="3763928">Cell 4,8</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="8409752">Cell 5,8</DIV></TD></TR> <TR> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="26148220">Cell 0,9</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="30015102">Cell 1,9</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="13189396">Cell 2,9</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="8119943">Cell 3,9</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="10246210">Cell 4,9</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="11434871">Cell 5,9</DIV></TD></TR> <TR> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="10751758">Cell 0,10</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="6503304">Cell 1,10</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="13605872">Cell 2,10</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="6021038">Cell 3,10</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="6718343">Cell 4,10</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="19645447">Cell 5,10</DIV></TD></TR> <TR> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="14196226">Cell 0,11</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="14252445">Cell 1,11</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="450123">Cell 2,11</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="28987414">Cell 3,11</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="4537415">Cell 4,11</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="5428820">Cell 5,11</DIV></TD></TR> <TR> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="23970790">Cell 0,12</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="29313387">Cell 1,12</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="15479518">Cell 2,12</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="14669379">Cell 3,12</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="24670213">Cell 4,12</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="7680063">Cell 5,12</DIV></TD></TR> <TR> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="22565791">Cell 0,13</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="23940670">Cell 1,13</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="16755466">Cell 2,13</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="23848942">Cell 3,13</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="169091">Cell 4,13</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="28476580">Cell 5,13</DIV></TD></TR> <TR> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="31070867">Cell 0,14</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="19663047">Cell 1,14</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="20337504">Cell 2,14</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="21479453">Cell 3,14</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="23347240">Cell 4,14</DIV></TD> <TD> <DIV class=gwt-Label __eventBits="125" onchange="null" onload="null" onerror="null" __hash="19023494">Cell 5,14</DIV></TD></TR></TBODY></ TABLE></DIV> </body> </html> ###### End Broken Page ########