I have two column div layout
<div id="site-wrapper">
<div id="leftSidebar">
</div>
<div id="rightSide">
</div>
</div>
my js
$('#leftSidebar').height($('#rightSide').height());
However in IE7 it’s adding a chunk of white space at the bottom. Is my jquery correct?
Yes, outerHeight should do this for you.
http://api.jquery.com/outerHeight says:
So if you have margins: