|
Posted by Thierry Lam on 03/10/07 16:26
Thanks for that tinfo, those browser specific exceptions are pretty
annoying in deploying web apps.
On Mar 10, 10:24 am, "Jonathan N. Little" <lws4...@centralva.net>
wrote:
> 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 STUDIOhttp://www.LittleWorksStudio.com
[Back to original message]
|