title: Can't add overflow-x to container of floats
body: <p>I want to add horizontal scroll-bar to footer, when there is not enough space for divs, but instead that it just drops to lower line.</p>
  
  <p>I added </p>
  
  <pre class="lang-css prettyprint-override"><code>overflow-x: auto;
  overflow-y: hidden;
  </code></pre>
  
  <p>but it still doesn't work.
  How should fix it?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="true">
  <div class="snippet-code snippet-currently-hidden">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>footer {
    background: yellow;
    position: absolute;
    margin: 0 auto;
    left: 0;
    bottom: 0;
    height: 150px;
    font-size: 12px;
    text-align: center;
    overflow-x: auto;
    overflow-y: hidden;
  }
  footer #items {
    display: inline-block;
    height: 150px;
  }
  footer #items div {
    margin-left: 7px;
    margin-top: 7px;
    float: left;
    height: 134px;
    width: 134px;
    border-style: solid;
    border-color: #752b01;
    border-width: 2px;
    display: inline-block;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;footer&gt;
    &lt;div id="items"&gt;
      &lt;div&gt;&lt;/div&gt;
      &lt;div&gt;&lt;/div&gt;
      &lt;div&gt;&lt;/div&gt;
      &lt;div&gt;&lt;/div&gt;
      &lt;div&gt;&lt;/div&gt;
      &lt;div&gt;&lt;/div&gt;
      &lt;div&gt;&lt;/div&gt;
      &lt;div&gt;&lt;/div&gt;
      &lt;div&gt;&lt;/div&gt;
      &lt;div&gt;&lt;/div&gt;
      &lt;div&gt;&lt;/div&gt;
      &lt;div&gt;&lt;/div&gt;
      &lt;div&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/footer&gt;</code></pre>
  </div>
  </div>
  </p>