title: Input width auto adjust using pure CSS only
body: <p>I want to make input stretchable, I can achieve this by replacing <code>&lt;input&gt;</code> with <code>&lt;div&gt;&lt;/div&gt;</code></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.newsletter:after {
    content: '';
    clear: both;
    display: table;
  }
  .submit-button {
    float: right;
  }
  .email-input {
    overflow: hidden;
    background: #f1f1f1;
    border: 1px solid #000;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="newsletter"&gt;
    &lt;button class="submit-button" title="Subscribe" type="submit"&gt;Go&lt;/button&gt;
    &lt;input type="email" class="email-input" title="Sign up for our newsletter" value="email"&gt;
  &lt;/div&gt;
  &lt;div class="newsletter"&gt;
    &lt;button class="submit-button" title="Subscribe" type="submit"&gt;Go&lt;/button&gt;
    &lt;div class="email-input"&gt;want to make input like this&lt;/div&gt; &lt;!-- just for ref only --&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>