title: Dynamically change the font size of an input text box to fill the dimensions
body: <p>I'd like to change the font size into an <code>&lt;input type="text" size="10&gt;</code> dynamically to fill the box. Here are some examples:</p>
  
  <p>With less chars:</p>
  
  <p><img src="https://i.stack.imgur.com/h5L0k.png" alt="enter image description here"></p>
  
  <p>With more chars:</p>
  
  <p><img src="https://i.stack.imgur.com/H6ZOf.png" alt="enter image description here"></p>
  
  <p>Is it possible?</p>