title: Workaround rendering bug in IE quirks mode
body: <p>I'm trying to get a simple HTML/CSS page to work as an eBay template, however it fails to render properly in IE. Thanks to eBay's HTML choices, the listing will always render in quirks mode (no doctype reference in the listing's iframe). The problem only arises when a browser window is narrower than the listing asks for (~1000px). I've tried using various CSS hacks for this (IE's box model, double margin, etc), but I can't figure out where the problem is, except that it seems that IE tries to render the contents of the page to the width of the window, overriding the widths defined (judging by the way background images are cut short even though their div tags have defined min-width's. Anyhow, the HTML is (I've added dots to break the img and a tags so that this could post):</p>
  
  <pre><code>
      &lt;style type="text/css"&gt;
          img {border:none;}
          .head {min-width:1000px; width:auto !important; width:1000px; min-height:100px; text-align:center; padding:0; margin:0px auto; padding-top: 172px; background: #d4e1ea url(xxxx) no-repeat center top;}
          .left {margin-top:20px; padding:0; float:left;}
          .right {width:200px; margin:0px; margin-top:10px; padding:0; float:right;}
          .main {margin-left:189px; margin-top:20px; margin-right:10px; min-width:800px; width:auto !important; width:800px;}
          .frame (width:100%}
          .foot {width:564px; margin-top:20px;}
          .title {height:68px; width:563px; background-image:url(xxxx); padding:0; text-align:center; font-size:22px; text-transform:uppercase; font-weight:bold; font-family:Helvetica,Tahoma,Arial,sans-serif;}
          .mid {min-height:210px; width:563px; background:repeat-x; padding:0; margin-top:15px; margin-bottom:10px; overflow:hidden;}
          .mid-top {height:34px; background:no-repeat; margin:0; margin-bottom:10px;}
          .mid-main {margin-left:15px; overflow:hidden;}
          .mid-main, .mid-main table {font-size:14px;}
          .foot .mid-main {height:450px; margin:0; margin-left:1px; padding-left:15px; padding-top:5px; clear:both; background:url(xxxx) repeat-x;}
          .menu, .img {list-style:none; margin:0; padding:0;}
          .menu li {margin:0 0 10px 0; padding:0;}
          .menu li a {position:relative; display:block;}
          .menu li a img {position:absolute; left:0px;}
          .menu li a:hover img {left:0px;}
          .img li div {width:200px; height:200px; margin-bottom: 20px;}
          .search {min-height:56px; padding-top:41px; padding-left:12px; margin-bottom:20px; background:url(xxxx) no-repeat;}
      &lt;/style&gt;
      &lt;div class="head"&gt;
          &lt;!-- FLASH OBJECT --&gt;
      &lt;/div&gt;
      &lt;div class="left"&gt;
          &lt;div class="search"&gt;&lt;form action="xxxx" method="get" name="search"&gt;
              &lt;input type="name" name="_nkw" id="eb-srch" length="10" value="Search..." /&gt;
              &lt;input type="submit" value="Search" name="submit" /&gt;
          &lt;/form&gt;&lt;/div&gt;
          &lt;ul class="menu" id="ldca-menu"&gt;
              &lt;li&gt;&lt;.a href="xxx"&gt;&lt;.img src="xxxx" /&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;.a href="xxx"&gt;&lt;.img src="xxxx" /&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;.a href="xxx"&gt;&lt;.img src="xxxx" /&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
      &lt;div class="main"&gt;
          &lt;div class="right"&gt;&lt;ul class="img"&gt;
              &lt;li&gt;&lt;.a href="xxxx"&gt;&lt;.img src="xxxx" width="200" height="178" alt="image" /&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;.a href="xxxx"&gt;&lt;.img src="xxxx" width="200" height="178" alt="image" /&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;.a href="xxxx"&gt;&lt;.img src="xxxx" width="200" height="178" alt="image" /&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;&lt;/div&gt;
          &lt;div class="frame"&gt;
              &lt;div class="title"&gt;Thing to Sell&lt;/div&gt;
              &lt;div class="desc mid"&gt;
                  &lt;div class="mid-top"&gt;&lt;!-- CSS BG image --&gt; &lt;/div&gt;
                  &lt;div class="mid-main"&gt;Description....blah..&lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="specs mid"&gt;
                  &lt;div class="mid-top"&gt;&lt;!-- CSS BG image --&gt; &lt;/div&gt;
                  &lt;div class="mid-main"&gt;&lt;!-- more description --&gt;&lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="foot"&gt;
              &lt;ul id="ldft-menu" class="menu"&gt;
                  &lt;li&gt;&lt;div onclick="x" class="x"&gt;&lt;.img alt="x" src="xxxx" /&gt;&lt;/div&gt;&lt;/li&gt;&lt;!-- JS is to change img sprite to hightlight tab --&gt;
                  &lt;li&gt;&lt;div onclick="x" class="x"&gt;&lt;.img alt="x" src="xxxx" /&gt;&lt;/div&gt;&lt;/li&gt;&lt;!-- JS is to change img sprite to hightlight tab --&gt;
                  &lt;li&gt;&lt;div onclick="x" class="x"&gt;&lt;.img alt="x" src="xxxx" /&gt;&lt;/div&gt;&lt;/li&gt;&lt;!-- JS is to change img sprite to hightlight tab --&gt;
              &lt;/ul&gt;
              &lt;div class="mid-main"&gt;
                  &lt;div id="ldft-1"&gt;
                      &lt;h3&gt;Tab Title&lt;/h3&gt;
                      &lt;p&gt;Content&lt;/p&gt;
                  &lt;/div&gt;
                  &lt;div id="ldft-2"&gt;
                      &lt;h3&gt;Tab Title&lt;/h3&gt;
                      &lt;p&gt;Content&lt;/p&gt;
                  &lt;/div&gt;
                  &lt;div id="ldft-3"&gt;
                      &lt;h3&gt;Tab Title&lt;/h3&gt;
                      &lt;p&gt;Content&lt;/p&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>