Reply to Re: Table spacing keep decreasing on right side on Firefox

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация