title: inline-block on span
body: <p>I expected the two <code>span</code> tags in the following sample to display next to each other, instead they display one below the other. If I set the <code>width</code> of the class <code>span</code>.right to 49% they display next to each other. I am not able to figure out why the right span is pushed down like the right span has some invisible <code>padding/margin</code> which makes it take more than 50%. I am trying to get this done without using html tables. Any ideas?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>* {
    margin: 0;
  }
  
  html,
  body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    border: none;
  }
  
  div.header {
    width: 100%;
    height: 80px;
    vertical-align: top;
  }
  
  span.left {
    height: 80px;
    width: 50%;
    display: inline-block;
    background-color: pink;
  }
  
  span.right {
    vertical-align: top;
    display: inline-block;
    text-align: right;
    height: 80px;
    width: 50%;
    background-color: red;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
  
  &lt;head&gt;
    &lt;title&gt;Test Page&lt;/title&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;div class='header'&gt;
      &lt;span class='left'&gt;Left Span 50% width&lt;/span&gt;
      &lt;span class='right'&gt;Right Span 50% width&lt;/span&gt;
    &lt;/div&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  <hr />
  <p>Thanks for the explanation. The <code>float:left</code> works beautifully with expected results in FF 3.1. Unfortunately, in IE6 the right side span renders 50% of the 50%, in effect giving it a width of 25% of the browser window. Setting its width to 100% achieves the desired results but breaks in FF 3.1 which is in standards compliance mode and I understand that. Getting it to work both in FF and IE 6, without resorting to hacks or using multiple CSS sheets has been a challenge</p>