Here's the case:
<style>
body {
margin: 0;
}
p {
font-family: arial;
font-size: 13px;
margin: 13px 0;
}
</style>
<div id="content">
<p>The real me lives on the internet!</p>
</div>
<p><code>#content</code>'s height is: <span></span>px.</p>
<script src="jquery.min.js"></script>
<script>
var $x = $('#content').outerHeight(true);
$("span").text($x);
</script>
I'm trying to retrieve the total height of a (unmargined) DIV, which have margined content inside it.
So... yeah... how can I get the #content
's total height, INCLUDING the overflowing margins from whatever inside it? (going by the example, the script should be returning 42px instead of 16px)
Thank You.