fluid
May 10th 2006, 8:48 am
I've noticed that FireFox messes table layout if you try to hide a table row.
<table>
<tr>
<td>
hello world
</td>
</tr>
<tr class="hiding-class">
<td>
Hide me!
</td>
</tr>
</table>
As illustrated above, if hiding-class toggles between display:block and display:none, IE displayes the table row correctly but when viewed in FireFox the row is completely out of place. I've found a workaround which determines which browser the user is using and writes display:table-row as apposed to display:block which works absolutely fine.
If you have had the same problem, im eager to know how you solved it and if it's easier than using javascript like i did.
<table>
<tr>
<td>
hello world
</td>
</tr>
<tr class="hiding-class">
<td>
Hide me!
</td>
</tr>
</table>
As illustrated above, if hiding-class toggles between display:block and display:none, IE displayes the table row correctly but when viewed in FireFox the row is completely out of place. I've found a workaround which determines which browser the user is using and writes display:table-row as apposed to display:block which works absolutely fine.
If you have had the same problem, im eager to know how you solved it and if it's easier than using javascript like i did.