Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Colspan in IE7/8 not respected

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?

Currently, the table only fills the first column, and it will not span.

Update: EXAMPLE

http://stefankendall.com/files/example.html

like image 907
Stefan Kendall Avatar asked Jun 17 '10 17:06

Stefan Kendall


2 Answers

Use colSpan, not colspan

like image 145
Stefan Kendall Avatar answered Nov 09 '22 09:11

Stefan Kendall


The only thing that comes to mind is that you may have to fill the columns with something for them to get rendered in IE.

<td>&nbsp;</td>
like image 1
Pekka Avatar answered Nov 09 '22 11:11

Pekka