Colspan in IE7/8 not respected

Posted by Stefan Kendall on Stack Overflow See other posts from Stack Overflow or by Stefan Kendall
Published on 2010-06-17T17:46:37Z Indexed on 2010/06/17 17:53 UTC
Read the original article Hit count: 325

Filed under:
|
|
|

The DOM looks like this:

<table>
  <tr>
    <td>a</td>...<td>g</td>
  </tr>
  <tr>
    <td colspan="3">
      <table>
        ...
      </table>
    </td>
  </tr>
  <tr>
    <td></td>...<td></td>
  </tr>
</table>

Any idea why this wouldn't work in IE? I tried setting width:auto on the TD holding the inner table, and table-layout:fixed isn't viable because the tabular data is generated dynamically.

What could be going wrong?

© Stack Overflow or respective owner

Related posts about html

Related posts about web-development