Posted by Jonathan N. Little on 03/10/07 15:24
Thierry Lam wrote:
> For the following codes, if you continuously check the checkbox, the
> space on the right side keep decreasing dynamically on Firefox
> 1.5.0.10 while you don't see such behaviour on IE 6.0.2900, does
> anyone know why and how to fix it?
<snip>
Because to toggle a table cell from displaying or not should be:
if (checked){
cell.style.display = "table-cell";
}
else{
cell.style.display = "none";
}
Note:
'display: block' != 'display: table-cell'
But yeah, you guessed it didn't you? IE at least to version 6 does not
support "table-cell" so you have to browser sniff here and use 'block'
for IE...
Or not use a table...
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|