I am adding element dynamically to DOM.

```
$('<div class="entry"></div>').text(data.status).appendTo(app.twitter_feed);

```

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.

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?