title: How to absolute positioning an icon inside input with text align and 50% width
body: <p>I need a input horizontally centered and a icon inside. Something like this:</p>
  
  <p><a href="https://i.stack.imgur.com/iwVPR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iwVPR.png" alt="enter image description here"></a></p>
  
  <p>I have this code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.search { 
    position: relative;
    text-align:center;
    background-color:#ddd;
    padding:2em 0;
  }
  
  input[type="search"] { 
    text-indent: 2em;
    font-size:1.9em;
    padding:0.2em 0;
    width:50%;
  }  
     
  
  .fa-search { 
    position: absolute;
    left: 10px;
    top:50%;
    transform: translateY(-50%);
    font-size: 2em;
    color:orange;  
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet"/&gt;
  
  &lt;div class="search"&gt;
       
    &lt;i class="fa fa-search" aria-hidden="true"&gt;&lt;/i&gt;
    &lt;input type="search" class="search-field" placeholder="Buscar" name="s" /&gt;
  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I checked that if I remove <code>left: 10px;</code> works fine in windows navigators but not in mac.</p>
  
  <p>Any ideas?</p>