View Full Version : IE's cell-width / colspan bug...

12-20-2005, 06:38 PM
Any ideas on how to do a work-around for the problem described here (http://www.quirksmode.org/css/iewin_table.html).

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. :mad:

07-31-2006, 11:13 AM
I just ran into the same thing and found that it's avoided by converting to % width... Hope it helps.

04-09-2008, 06:48 PM
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:

.colspan {
width: auto;
<td colspan="n" class="colspan">...</td>


<td colspan="n" style="width:auto;">...</td>

Hope this helps.