Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Sep 2005
    Posts
    535
    Thanks
    0
    Thanked 0 Times in 0 Posts

    IE's cell-width / colspan bug...

    Any ideas on how to do a work-around for the problem described here.

    Basically in IE, if a CSS width is defined for a cell (<td> element) as well as having a colspan attribute allowing the cell to span more than one collumn, the cell (eg the border etc.) will occupy the width*colspan but the content will only occupy the width.
    If you want answers, write a smart question.

    Yes, someone probably does know how...

    Oh, and if you want to learn, STFW!

  • #2
    New to the CF scene
    Join Date
    Jul 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I just ran into the same thing and found that it's avoided by converting to % width... Hope it helps.

  • #3
    New to the CF scene
    Join Date
    Apr 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Solution

    I ran into this bug recently. The solution was to set the width of the <td> with a colspan to auto. So it would look like this:
    Code:
    .colspan {
      width: auto;
    }
    ....
    <td colspan="n" class="colspan">...</td>
    or
    Code:
     <td colspan="n" style="width:auto;">...</td>
    Hope this helps.


  •  

    Posting Permissions

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