<div style="width: 100px; height:50px; line-height:50px; overflow:hidden;">
<p>A short line</p>
</div>
<div style="width: 100px; height:50px; line-height:50px; overflow:hidden;">
<p>A really really really long line</p>
</div>
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?
Thanks!