mikeage.net Logo
mikeage.net/tag/ie6/

mikeage.net @ ז׳ תמוז תשע״ח

Posts Tagged ‘IE6’

Full Width Tables in IE6

‍‍ז׳ מנחם אב תשס״ה - Friday, August 12th, 2005

Quick Overview

Internet Explorer 6.0 (and possibly earlier) has a buggy CSS interperter. The biggest problem is the broken "box model", which is documented in enough other places. However, one other major problem is that tables do not inherit div's width. Thus, in my page, which has a left sidebar, if I declare a <table width="100%"> in the main window, it will make the table 100% of the full screen, which, since there's a sidebar, pushes it off the edge.

Correct In Mozilla (for this layout)

<div id="LeftMenu"">
...
</div>
<div id="Content">
<table width="100%">
...
</table>
</div>

This is exactly what we want. However, it fails in IE.

Correct In IE (for this layout)

<div id="LeftMenu">
...
</div>
<div id="Content">
<div style="width:100%">
<table width="100%">
...
</table>
</div>
</div>

Mozilla also renders this correctly.

Enjoy.

Quick Map
Content +
Personal +
Archives +
Site Stuff +
RBS Weather +
Search +
Recent Images

Valid XHTML 1.1!
Printer Friendly Page
 

Last Modified: September 04, 2006 @ 02:11 CST

Memory(TRUE): 2097152/2097152
Memory(FALSE): 2977008/2986992