Tell me more ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

This HTML table is being misinterpreted by some browsers, and I cannot understand why :

Chrome and Outlook display the rendering I expect, where the 2nd cells of the 2nd and 3rd lines pass over the 4th cell of the lines 4 to 10.

screenshot of Chrome rendering

Internet Explorer 8 and Opera 10 display something different, where the 4th cell of the lines 4 to 10 "starts after" the 2nd cells of the 2nd and 3rd lines.

Screenshot of Internet Explorer 8 rendering : http:// tinyurl.com/34387ec

Any guess why my colspans et rowspans are not interpreted the same way ? Which browsers are right ? How can I arrange my code so that they all render like Chrome ?

My actual code :

<table border=0 cellspacing=0 cellpadding=0 width=400 style='width:300pt;border-collapse:collapse;border:1px solid black;'>
 <tr style='height:9.75pt'>
  <td colspan=6 valign=top style='border:1px solid black;height:9.75pt;width:300pt;' width="400px">
  </td>
 </tr>
 <tr style='mso-yfti-irow:1;height:12pt' height="16px">
  <td rowspan=9 valign=top style='border:1px solid black;border-top:1px solid black;height:12pt;width:14.25pt' width="19px">
  </td>
  <td bgcolor="red" colspan=3 valign=top style='border:1px solid black;height:12pt;width:203.25pt;' width="271px">
  </td>
  <td rowspan=2 valign=top style='border:1px solid black;height:12pt;width: 72pt' width="96px">
  </td>
  <td rowspan=2 valign=top style='border:1px solid black;height:12pt;width:10.5pt' width="14px">
  </td>
 </tr>
 <tr style='mso-yfti-irow:2;height:12pt' height="16px">
  <td bgcolor="red" colspan=3 valign=top style='border:1px solid black;height:12pt;width:203.25pt;' width="271px" height="16px">
  </td>
 </tr>
 <tr style='mso-yfti-irow:3;height:3.75pt' height="5px">
  <td colspan=2 valign=top style='border:1px solid black;height:3.75pt;width:170.25pt' width="227px" height="5px">
  </td>
  <td colspan=3  rowspan=7 valign=top style='border:1px solid black;height:3.75pt;width:115.5pt' width="154px">
  </td>
 </tr>
 <tr style='mso-yfti-irow:4;height:11.25pt' height="15px">
  <td valign=top style='border:1px solid black;height:11.25pt;width:27.75pt' width="37px">
  </td>
  <td valign=top style='border:1px solid black;height:11.25pt;width:142.5pt' width="190px">
  </td>
 </tr>
 <tr style='mso-yfti-irow:5;height:11.25ptpt' height="15px">
  <td valign=top style='border:1px solid black;height:11.25pt;width:27.75pt' width="37px" height="15px">
  </td>
  <td valign=top style='border:1px solid black;height:11.25pt;width:142.5pt' width="190px" height="15px">
  </td>
 </tr>
 <tr style='mso-yfti-irow:6;height:3.75pt' height="5px">
  <td colspan=2 valign=top style='border:1px solid black;height:3.75pt;width:170.25pt' width="227px">
  </td>
 </tr>
 <tr style='mso-yfti-irow:7;height:11.25pt' height="15px">
  <td colspan=2 valign=top style='border:1px solid black;height:11.25pt;width:170.25pt' width="227px" height="31px" >
  </td>
 </tr>
 <tr style='mso-yfti-irow:8;height:23.25pt' height="31px">
  <td colspan=2 valign=top style='border:1px solid black;height:23.25pt;width:170.25pt' width="227px">
  </td>
 </tr>
 <tr style='mso-yfti-irow:9;mso-yfti-lastrow:yes;height:50.25pt' height="67px">
  <td colspan=2 valign=top style='border:1px solid black;height:50.25pt;width:170.25pt' width="227px">
  </td>
 </tr>
</table>
share|improve this question
This is off-topic according the the FAQ; please ask on doctype.com – JasonBirch Dec 5 '10 at 19:04
Sorry, I though this was meant to replace doctype ! – Jalil Dec 6 '10 at 8:07

closed as off topic by JasonBirch Dec 5 '10 at 19:03

Questions on Webmasters Stack Exchange are expected to relate to webmastering within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.