I have an issue which seems to have been introduced between Firefox 3 and 4. Essentially it's to do with table-layout: fixed
.
I have a scrollable table which uses two DIVs, one for the header and one for the body (sadly it's the only option which worked for me).
The body table looks something like this (note that this is all generated with JavaScript, it's part of a GWT application):
<table style="table-layout: fixed;">
<colgroup>
<col width="61" />
<col width="57" />
</colgroup>
<tbody>
<!-- data -->
</tbody>
</table>
(by the way, the page is declared as HTML 4.01 Transitional)
It seems that in Firefox 3, the column widths are being respected. However, in Firefox 4 it seems to ignore the column widths some of the time (difficult to pin down exactly but generally when the table starts getting small enough for it to be tricky for Firefox to resize). If I inspect the column widths in Firefox they generally have little relation to the widths as specified in the HTML.
I'm just wondering if anyone can shed any light on why this might be happening?
width:61px;
" instead of the width attribute? – Luxurious<colgroup>
tag, not the<col>
tags, so it doesn't apply in this case. – Marriage