title: Width 100% goes outside the wrap
body: <p>Width 100% is not working! My footer is going outside the <code>#wrap</code> and I don't want to set exact pixels to it.</p>
  
  <p>Any solution?</p>
  
  <p><a href="http://jsfiddle.net/2P6KR/" rel="nofollow noreferrer">live example</a>.</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>#wrap {
    border: 1px solid #ccc;
    clear: both;
    display: table;
    vertical-align: middle;
    position: relative;
    width: 400px;
    margin: 0 auto 10px;
    padding: 10px;
  }
  
  footer {
    clear: both;
    background: #f3f3f3;
    border: 1px solid #ccc;
    border-radius: 5px;
    float: left;
    margin: 0;
    padding: 10px;
    width: 100%;
    overflow: auto;
    min-height: 100%;
    height: auto !important;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id=wrap&gt;
    &lt;footer&gt;&amp;copy; 2013 PUAction&amp;nbsp;&amp;middot;&amp;nbsp;&lt;a href="#"&gt;Terms&lt;/a&gt;&amp;nbsp;&amp;middot;&amp;nbsp;&lt;a href="#"&gt;Disclaimer&lt;/a&gt;&amp;nbsp;&amp;middot;&amp;nbsp;&lt;a href="#"&gt;Privacy&lt;/a&gt;&amp;nbsp;&amp;middot;&amp;nbsp;&lt;a href="#"&gt;Login&lt;/a&gt;&lt;/footer&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>