title: Can't vertically align this text inside a div
body: <p>I want to have both images and text inside these divs to be vertically centered.</p>
  
  <p>I got the <code>img</code> to work with <code>top: 0; bottom: 0; margin: auto;</code>. Then I tried to vertically align the text by setting the <code>line-height</code> and <code>height</code> to the same height as the container but it doesn't center well, it's off by some amount.</p>
  
  <p>How can I get this to work?</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-html lang-html prettyprint-override"><code>&lt;div class="border" style="border:1px solid red; width:100%; height:70px; position:relative;"&gt;
    &lt;div class="border" style=" border:1px solid red; float:left; width:25%; height:100%; position:relative;"&gt;&lt;!--contenedor facebook--&gt;
      &lt;img style="width:32px; height:32px; position:absolute; top:0; bottom:0; margin:auto;"  src=""&gt;
   &lt;a href="tel:+34646611421"&gt;&lt;span style=" position:absolute; left:33px; line-height:70px; height:70px; font-family:Oswald, sans-serif; font-size:24px;"&gt;646611421&lt;/span&gt;&lt;/a&gt;
    &lt;/div&gt;
    &lt;div class="border" style=" border:1px solid red; float:left; width:25%; height:100%; position:relative;"&gt;&lt;!--contenedor mail--&gt;
       &lt;img style="width:32px; height:32px; position:absolute; top:0; bottom:0; margin:auto;"  src=""&gt;
   &lt;span&gt;&lt;a href="#" style="line-height:70px; height:70px; position:absolute; left:33px;"&gt;Mail Us&lt;/a&gt;&lt;/span&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>