Jump to content


Colspan null in FF when display: block

  • Please log in to reply
1 reply to this topic

#1 joquius

  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 19 September 2006 - 02:08 PM

Ok I have the following issue:
I have a certain, table  ::), in which when you click on a row, which has for the sake of the example 7 columns, that row is changed to display: none; and an expanded row replaces it by setting it's display to block (JS of course). Now the problem is that when I use this in IE6 it works  :o. Hurray IE. But in FF what happens is that the replacement row only fills the first column of the table (out of 7). Then when the old row is displayed again (in the same page load) it also fills only the first column. I guess this must just be some FF issue in rendering rows after the table has already been rendered, but seeing as it works in IE6 I was wondering if any of you know of a work around? If not I would appreciate it if you could tell me what you normally do to get an expandable row (with JS).

#2 nogray

  • Members
  • PipPipPip
  • Advanced Member
  • 930 posts
  • LocationSan Francisco CA

Posted 20 September 2006 - 04:08 PM

If you post your code, that would help. But firefox will have issue if you set the row (or table) style display:none; outside the tag. For example, if you set a class

.hide_tr {display:none;}
<tr class="hide_tr"><td>.....

When you change it back to display:block, FF will mess it up. You'll need to set the display property directly in the tag
<tr style="display:none;">.....
and instead of changing it to display="block" in the js, make it change to display="";


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users