title: Vertical centering text (jQuery)
body: <pre><code>&lt;div style="width: 100px; height:50px; line-height:50px; overflow:hidden;"&gt;
      &lt;p&gt;A short line&lt;/p&gt;
  &lt;/div&gt;
  
  &lt;div style="width: 100px; height:50px; line-height:50px; overflow:hidden;"&gt;
      &lt;p&gt;A really really really long line&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Wrapped text in the second example gets cut off because of the line-height:50px which should be 25px in this case. How do I use jQuery to find if theres single or multi-line text in an element?</p>
  
  <p>Thanks!</p>