If container width, padding and line-height is known, how to calculate height?
<p>I am adding element dynamically to DOM.</p>

<pre><code>$('&lt;div class="entry"&gt;&lt;/div&gt;').text(data.status).appendTo(app.twitter_feed);
</code></pre>

<p>I want to get element height before it is added to DOM. The usual approach is to add the element within a hidden element with the same style and then simply see what is the height.</p>

<p>Though, is it imposible to calculate element height if you know container's width, padding and line-height (content is only plain-text) and content?</p>
