title: Mobile Safari text input width bug?
body: <p>Take a look at these screenshots:</p>
  
  <p><a href="https://i.stack.imgur.com/1TFuj.png" rel="noreferrer">http://i.stack.imgur.com/1TFuj.png</a></p>
  
  <p><a href="https://i.stack.imgur.com/3fukT.png" rel="noreferrer">http://i.stack.imgur.com/3fukT.png</a></p>
  
  <p>I am having trouble getting text inputs to render as expected when set to 'width: 100%'. The text box extends too far to the right, past the right padding in the first screenshot and past the right margin of the div in the second screenshot.</p>
  
  <p>Is this a bug in mobile Safari? If so, can anyone suggest a workaround? It seems to work fine in other mobile browsers and also in the desktop version of Safari. The problem seems limited to input elements, as select elements seem to have the proper width when styled in the exact same way.</p>
  
  <p>Thanks in advance for any help!</p>
  
  <p>Here's the code for the first screenshot:</p>
  
  <pre><code>&lt;div style="padding-left: 1em; padding-right: 1em;"&gt;
      &lt;div style="font-size: 1.2em;"&gt;
         Username:
      &lt;/div&gt;
      &lt;div&gt;
          &lt;input type="text" style="width: 100%; font-size: 1.1em;" id="tbUsername" name="tbUsername"&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And here's the code for the second (notice how the select elements, which are styled the exact same way, are unafflicted):</p>
  
  <pre><code> &lt;div class="item"&gt;
      &lt;hr /&gt;
        &lt;div class="title"&gt;Group Name&lt;/div&gt;
        &lt;div class="content"&gt;
           &lt;asp:TextBox ID="tbGroupName" runat="server"&gt;
           &lt;/asp:TextBox&gt;
        &lt;/div&gt;
        &lt;div class="confirmation"&gt;
           &lt;img alt="" src="../Graphics/Check-icon.png" runat="server" id="imgConfirmGroupName"/&gt;
       &lt;/div&gt;
    &lt;hr /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And here's the CSS:</p>
  
  <p><pre><code>
  .item
  {<br>
      padding-top: .5em;
      padding-bottom: .5em;</p>
  
  <pre><code>border-left: 1px solid black;
  border-bottom: 1px solid black;
  
  padding-left: 0.5em;
  </code></pre>
  
  <p>}</p>
  
  <p>.item .title
  {
      float: left;
      width: 25%;
  }</p>
  
  <p>.item .content
  {
      float: left;
      width: 67%;
  }</p>
  
  <p>.item .confirmation
  {
      float:left;
      width: 8%;
  }</p>
  
  <p>.item .confirmation img
  {
      padding-left: .3em;
      height: 1.1em;
  }</p>
  
  <p>.item hr
  {
      clear: both;
      visibility: hidden;
      padding: 0;
      margin: 0;
  }</p>
  
  <p>.item select
  {
      width: 100% !important;
      font-size: 0.9em;
  }</p>
  
  <p>.item input
  {
      width: 100% !important;
      font-size: 0.9em;
  }
  </pre></code></p>