Tables are displayed incorrectly in HTML pages in Internet Explorer 8

Article translations Article translations
Article ID: 975170 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

When you view an HTML page that contains tables in Windows Internet Explorer 8, you find that there are several columns missing. However, the tables are displayed correctly in Windows Internet Explorer 7.

CAUSE

This issue occurs because document compatibility for Internet Explorer 8 is set to Internet Explorer 7 Standards mode. This mode is the default setting. This issue does not occur when document compatibility is set to Internet Explorer 8 Standards mode.

RESOLUTION

Security update information

To resolve this problem, install the most current cumulative security update for Internet Explorer. To install the most current updates, visit the following Microsoft Web site:
http://windowsupdate.microsoft.com
For more technical information about the most current cumulative security update for Internet Explorer, visit the following Microsoft Web site:
http://www.microsoft.com/technet/security/current.aspx

Note This update was first included in security update 978207 (MS10-002). For more information, click the following article number to view the article in the Microsoft Knowledge Base:
978207 MS10-002: Cumulative security update for Internet Explorer

MORE INFORMATION

For more information about document compatibility in Internet Explorer 8, visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn.microsoft.com/en-us/library/cc288325(VS.85).aspx

How to reproduce the problem

Consider the following sample page:
<HTML><TABLE WIDTH="100%" border=1 cellSpacing=0 cellPadding=0>
<COLGROUP>
  <COL>
  <COL>
  <COL>
  <COL style="WIDTH: 50%">
  <COL style="WIDTH: 50%">
</COLGROUP>
<TBODY>
  <TR>
    <TD colSpan=5 ></TD>
  </TR>
  <TR>
    <TD>1</TD>
    <TD style="padding:6px;">2<INPUT style="position:absolute;top:-7000" value=2 /></TD>
    <TD style="padding:6px;">3 Long long long long text</TD>
    <TD style="padding:6px;">
      <TABLE style="table-layout:fixed"><TBODY><TR><TD>4</TD></TR></TBODY></TABLE>
    </TD>
    <TD style="padding:6px;">
      <TABLE style="table-layout:fixed"><TBODY><TR><TD>5</TD></TR></TBODY></TABLE>
    </TD>
  </TR>
</TBODY></TABLE></HTML>
Save this source as an .html file, and then open the file in Internet Explorer 8. Although the table in the source has five columns, you see only three columns. However, if you open the file in Internet Explorer 7, you see all five columns.

Properties

Article ID: 975170 - Last Review: October 13, 2009 - Revision: 1.1
APPLIES TO
  • Windows Internet Explorer 8
Keywords: 
atdownload kbprb kbbug kbexpertiseinter kbsurveynew kbqfe KB975170

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com