title: Content of div is longer then div itself when width is set to 100%?
body: <p>I have <code>div</code> of fixed width containing only <code>input</code> text box and <code>width</code> of that <code>input</code> is set to <code>100%</code>. I expect it to fill the <code>div</code> but instead it is slightly longer.</p>
  
  <p>Demonstration code:</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div class="container"&gt;
      &lt;input class="content" id="Text1" type="text" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>.container
  {
      width: 300px;
      height: 30px;
      border: thin solid red;
  }
  .content
  {
      width: 100%;
  }
  </code></pre>
  
  <p>Result (Firefox):</p>
  
  <p><img src="https://i.stack.imgur.com/yIbr0.png" alt="enter image description here"></p>
  
  <p>This happens also in IE 8, Chrome, Safari... The overflow width seems to vary in different browsers.
  How do I make the content to exactly fill the width of the <code>div</code>?</p>