Hi there!
I'm developing a "scrollable table".
At first I started using CSS. It worked pretty well until I found a bug that happens when placing this table into a tabbing control...
So I decided to develop 2 tables...one for the header information and one for the body. I simply placed the body into a <div> with style="overflow :auto".
I've set the header table to be 100%...expectin g it to span 100% of the parent.
This works fine in other browsers but for some reason FireFox does not do this.
I seem to be the only person with this problem...
Normally people are complaining that the width is larger than the parent container...
In my case the width is set to the the size of the content of its cells...it is Much smaller than the parent container and so it doesn't match up properly with the content cells...
Any suggestions on how to correct this problem would be appreciated.
The following is the html code that I am using.
Thanks in advance!
[code=html]
<div style="width:35 0px" class="ScrollCo ntainer">
<table cellspacing="0p x" style="display: inline; text-align:center;wi dth:100%; margin:0;paddin g:0;" width="100%">
<tr width="100%">
<th align=center width="20%">Sel </th>
<th align=center width="40%">Abc </th>
<th align=center width="40%">Xyz </th>
</tr>
</table>
<div class="ScrollTa ble" style="height:8 0px; overflow:auto;" >
<table id="Tbl_Content " cellspacing="0p x" width="95%">
<tbody>
<tr>
<td width="20%"><in put type="checkbox" name="MyThingyS elected" checked="checke d" value="Abc_1" /></td>
<td width="40%">Abc 1</td>
<td width="40%">Xyz 1</td>
</tr>
<tr>
<td width="20%"><in put type="checkbox" name="MyThingyS elected" checked="checke d" value="Abc_2" /></td>
<td width="40%">Abc 2</td>
<td width="40%">Xyz 2</td>
</tr>
<tr>
<td width="20%"><in put type="checkbox" name="MyThingyS elected" checked="checke d" value="Abc_3" /></td>
<td width="40%">Abc 3</td>
<td width="40%">Xyz 3</td>
</tr>
<tr>
<td width="20%"><in put type="checkbox" name="MyThingyS elected" checked="checke d" value="Abc_4" /></td>
<td width="40%">Abc 4</td>
<td width="40%">Xyz 4</td>
</tr>
<tr>
<td width="20%"><in put type="checkbox" name="MyThingyS elected" checked="checke d" value="Abcx_1" /></td>
<td width="40%">Abc x1</td>
<td width="40%">Xyz x1</td>
</tr>
<tr>
<td width="20%"><in put type="checkbox" name="MyThingyS elected" checked="checke d" value="Abcx_2" /></td>
<td width="40%">Abc x2</td>
<td width="40%">Xyz x2</td>
</tr>
<tr>
<td width="20%"><in put type="checkbox" name="MyThingyS elected" checked="checke d" value="Abcx_3" /></td>
<td width="40%">Abc x3</td>
<td width="40%">Xyz x3</td>
</tr>
<tr>
<td width="20%"><in put type="checkbox" name="MyThingyS elected" checked="checke d" value="Abcx_4" /></td>
<td width="40%">Abc x4</td>
<td width="40%">Xyz x4</td>
</tr>
</tbody>
</table>
</div>
</div>[/code]
I'm developing a "scrollable table".
At first I started using CSS. It worked pretty well until I found a bug that happens when placing this table into a tabbing control...
So I decided to develop 2 tables...one for the header information and one for the body. I simply placed the body into a <div> with style="overflow :auto".
I've set the header table to be 100%...expectin g it to span 100% of the parent.
This works fine in other browsers but for some reason FireFox does not do this.
I seem to be the only person with this problem...
Normally people are complaining that the width is larger than the parent container...
In my case the width is set to the the size of the content of its cells...it is Much smaller than the parent container and so it doesn't match up properly with the content cells...
Any suggestions on how to correct this problem would be appreciated.
The following is the html code that I am using.
Thanks in advance!
[code=html]
<div style="width:35 0px" class="ScrollCo ntainer">
<table cellspacing="0p x" style="display: inline; text-align:center;wi dth:100%; margin:0;paddin g:0;" width="100%">
<tr width="100%">
<th align=center width="20%">Sel </th>
<th align=center width="40%">Abc </th>
<th align=center width="40%">Xyz </th>
</tr>
</table>
<div class="ScrollTa ble" style="height:8 0px; overflow:auto;" >
<table id="Tbl_Content " cellspacing="0p x" width="95%">
<tbody>
<tr>
<td width="20%"><in put type="checkbox" name="MyThingyS elected" checked="checke d" value="Abc_1" /></td>
<td width="40%">Abc 1</td>
<td width="40%">Xyz 1</td>
</tr>
<tr>
<td width="20%"><in put type="checkbox" name="MyThingyS elected" checked="checke d" value="Abc_2" /></td>
<td width="40%">Abc 2</td>
<td width="40%">Xyz 2</td>
</tr>
<tr>
<td width="20%"><in put type="checkbox" name="MyThingyS elected" checked="checke d" value="Abc_3" /></td>
<td width="40%">Abc 3</td>
<td width="40%">Xyz 3</td>
</tr>
<tr>
<td width="20%"><in put type="checkbox" name="MyThingyS elected" checked="checke d" value="Abc_4" /></td>
<td width="40%">Abc 4</td>
<td width="40%">Xyz 4</td>
</tr>
<tr>
<td width="20%"><in put type="checkbox" name="MyThingyS elected" checked="checke d" value="Abcx_1" /></td>
<td width="40%">Abc x1</td>
<td width="40%">Xyz x1</td>
</tr>
<tr>
<td width="20%"><in put type="checkbox" name="MyThingyS elected" checked="checke d" value="Abcx_2" /></td>
<td width="40%">Abc x2</td>
<td width="40%">Xyz x2</td>
</tr>
<tr>
<td width="20%"><in put type="checkbox" name="MyThingyS elected" checked="checke d" value="Abcx_3" /></td>
<td width="40%">Abc x3</td>
<td width="40%">Xyz x3</td>
</tr>
<tr>
<td width="20%"><in put type="checkbox" name="MyThingyS elected" checked="checke d" value="Abcx_4" /></td>
<td width="40%">Abc x4</td>
<td width="40%">Xyz x4</td>
</tr>
</tbody>
</table>
</div>
</div>[/code]
Comment