hey folks,
i have a design and i am using the paul’s fixed header technique. and i added sort JS on it, its working all good but i need to place arrows next to heading i tried to place img tag next to it. it work fine until i have a one line heading. but there is two line heading (i have to break the heading down coz i had problem allocating th’s specific width’s)
<div class="fuel-result">
<div class="fuel-scroll">
<table class="fuel" width="100%" >
<thead>
<tr bgcolor="#f2f7fb">
<th><p>January<br /> Month <img src="../images/sorter.png" border="0" /></p></th>
<th><p>Feburary<br /> Month. <img src="../images/sorter.png" border="0" /></p></th>
<th><p>March<br /> Month <img src="../images/sorter.png" border="0" /></p></th>
<th><p>April<br /> Month <img src="../images/sorter.png" border="0" /></p></th>
<th><p>May <br />Month <img src="../images/sorter.png" border="0" /></p></th>
<th><p>June<br /> Month <img src="../images/sorter.png" border="0" /></p></th>
<th><p>July<br /> Month <img src="../images/sorter.png" border="0" /></p></th>
<th><p>August<br /> Month <img src="../images/sorter.png" border="0" /></p></th>
<th><p>Septemeber <img src="../images/sorter.png" border="0" /></p></th>
<th><p>October <img src="../images/sorter.png" border="0" /></p></th>
</tr>
</thead>
<tbody>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr> <tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr> <tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr> <tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr> <tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr> <tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
table.fuel{width:1020px; overflow-x:hidden;}
table.fuel td{border:1px solid #09C;padding:2px; text-align:center;}
table.fuel thead p{position:absolute; top:5px; margin-left:25px; cursor:pointer;}
table.fuel th tr{background-color:#f2f7fb;}
div.fuel-result{width:1020;height:278px;position:relative;padding-top:40px;}
div.fuel-scroll{width:100%; height:275px; overflow-x:hidden; overflow:auto;}
i must also add here that as elements are positioned, i can’t get a perfect center for my th’s. is there any workaround?
thanks in advance