title: Auto-scaling input[type=text] to width of value?
body: <p>Is there a way to scale the width of an <code>&lt;input type="text"&gt;</code> to the width of the actual value?</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>input {
    display: block;
    margin: 20px;
    width: auto;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;input type="text" value="I've had enough of these damn snakes, on this damn plane!" /&gt;
  
  &lt;input type="text" value="me too" /&gt;</code></pre>
  </div>
  </div>
  </p>