title: extra vertical space in IE after div clear
body: <p>I have created a simple grid of divs by left floating them and an empty div with a clear at the end of each row.</p>
  
  <p>This works fine in Firefox, but in IE I get extra vertical space between rows. I tried to apply the "clearfix" method, but I must be doing something wrong.</p>
  
  <p>Why does IE insert the extra vertical space and how can I get rid of it?</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
      &lt;style&gt;
          root {
              display: block;
          }
  
          body {
              background: white;
          }
  
          .colorChip {
              position:relative;
              float: left;
              width: 20px;
              height: 20px;
              margin: 2px;
              border-style: solid;
              border-width: 1px;
              border-color: black;
          }
  
          .clear {
              clear: both;
          }
  
          .clearfix {
              display:inline-block;
          }
  
          .clearfix:after, .container:after {
              clear:both;
              content:".";
              display:block;
              height:0;
              visibility:hidden;
          }
  
          * html .clearfix {
              height:1%;
          }
          .clearfix {
              display:block;
          }
  
      &lt;/style&gt;
      &lt;!--[if IE]&gt;
  &lt;style type="text/css"&gt;
    .clearfix {
      zoom: 1;     /* triggers hasLayout */
  &lt;/style&gt;
  &lt;![endif]--&gt;
  
    &lt;/head&gt;
  
    &lt;body&gt;
      &lt;div class="colorChip clearfix" style="background: rgb(163,143,88)"&gt;&lt;/div&gt;
      &lt;div class="colorChip" style="background: rgb(190,170,113)"&gt;&lt;/div&gt;
      &lt;div class="colorChip" style="background: rgb(190,250,113)"&gt;&lt;/div&gt;
      &lt;div class="clear"&gt;&lt;/div&gt;
      &lt;div class="colorChip clearfix" style="background: rgb(187,170,128)"&gt;&lt;/div&gt;
      &lt;div class="colorChip" style="background: rgb(215,197,154)"&gt;&lt;/div&gt;
      &lt;div class="colorChip" style="background: rgb(243,225,181)"&gt;&lt;/div&gt;
      &lt;div class="clear"&gt;&lt;/div&gt;
      &lt;div class="colorChip clearfix" style="background: rgb(104,94,68)"&gt;&lt;/div&gt;
      &lt;div class="colorChip" style="background: rgb(129,118,92)"&gt;&lt;/div&gt;
      &lt;div class="colorChip" style="background: rgb(155,144,116)"&gt;&lt;/div&gt;
      &lt;div class="clear"&gt;&lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>