Results 1 to 14 of 14

Thread: border-collapse bug - DIV layers

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Location
    The Netherlands
    Posts
    425

    Question border-collapse bug - DIV layers

    Hello fellow developers,

    The situation:
    We have multiple div layers on top of each other. With the use of java script we can create tab's that reveal layers when clicked on. We have on some of the layers, a table in an iframe. This is because the table is heavily modified and serves and a new sortof object.

    The problem:
    The problem is that when I set the tables border in my style sheet to collapse { border-collapse: collapse; } the borders 'shine trough' the div layers. In the top layer I can see the inner borders of my table object. When set to none, I do not see the borders.

    Can anybody help me out, I havn't had any luck finding this problem on the web, so maybe someone has had this too and hopefully fixed it?

    Thank you in advance.
    "Experience is something you don't get until just after you need it."

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    I think (and this is going from memory) that this is an IE bug, and you may be able to fix it by having no white space around the cell:

    Code:
    <td>No White-space
    on either side of cell</td>

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Location
    The Netherlands
    Posts
    425
    Code:
    <td>No White-space
    on either side of cell</td>
    ??? Will this put no white-space around the cells? I think I don't get it.

    <td> with no additional properties will make sure there is no whitespace in around my cells?

    The clue is that here at work, they use vaiable width's etc. So I can not only use <td> I need <td width="" class=""> etc. Could this create whitespace around my cells, or maybe there is a command that could make sure this white-space is eliminated?

    Thank you for your help!
    "Experience is something you don't get until just after you need it."

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Location
    The Netherlands
    Posts
    425
    Originally posted by Rick Bull
    I think (and this is going from memory) that this is an IE bug, and you may be able to fix it by having no white space around the cell:

    Code:
    <td>No White-space
    on either side of cell</td>

    I just thought about something... We do use padding, would this be equal to the white-space you're talking about?
    "Experience is something you don't get until just after you need it."

  5. #5
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Sorry i think I may have missunderstood your original question. Have you tried your page in different browsers, it sounds like it maybe a browser-specific bug.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Location
    The Netherlands
    Posts
    425
    We support only IE... Don't sue me

    The problem is that when multiple layers of DIVs are on top of each other the table objet with the border-collapse: collapse; will shine trough...

    White lines are visible on other div's that are visible. Those lines should not be visible because the div with the table is not visible...

    Thx...
    "Experience is something you don't get until just after you need it."

  7. #7
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    maybe border-collapse is not valid with visibility: hidden of the layer.


    and I am pretty sure border-collapse is an IE only thing.

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Location
    The Netherlands
    Posts
    425
    That could well be the problem, but how do I fix this? Just don't set the layer to hidden and set the other layer on top with z-index?

    Hmmm...

    Thx
    "Experience is something you don't get until just after you need it."

  9. #9
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    but if you do that, wouldn't it till show through?

    just can't use border-collapes in that table. other than that I can't think of another way.

  10. #10

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Location
    The Netherlands
    Posts
    425


    I hope this will be fixed in IE 7...
    "Experience is something you don't get until just after you need it."

  11. #11
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Originally posted by phpman
    and I am pretty sure border-collapse is an IE only thing.
    It is in the W3C's CSS spec, and it's supported in Moz and Opera.

    Can't you just set the border-collapse to seperate with javascript when you set the visibility on the table? I think you may need to use something like tableObject.style.borderCollapse = 'seperate';

  12. #12
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    Originally posted by Rick Bull
    It is in the W3C's CSS spec, and it's supported in Moz and Opera.

    Can't you just set the border-collapse to seperate with javascript when you set the visibility on the table? I think you may need to use something like tableObject.style.borderCollapse = 'seperate';
    funny you say that, I believe I tried with NS7 and it didn't go so well. I will double check as I am using it on one of my sites but have to wait until I get home.

  13. #13

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Location
    The Netherlands
    Posts
    425
    Originally posted by Rick Bull
    It is in the W3C's CSS spec, and it's supported in Moz and Opera.

    Can't you just set the border-collapse to seperate with javascript when you set the visibility on the table? I think you may need to use something like tableObject.style.borderCollapse = 'seperate';
    Hmmm, woudn't that be in reverse order? I set the table to seperate in the CSS and in the javascript, when visible, I'll set it to collapse?

    Could work...
    "Experience is something you don't get until just after you need it."

  14. #14
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Yeah that's what I meant, I think

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width