Forum Moderators: not2easy
I was thinking along the lines of absolute positioning, but the page structure varies so I can't use absolute values.
<div id="wrap">
<div id="1"></div>
<div id="2"></div>
</div>
$('#secondDiv').insertBefore('#firstDiv');
#wrap {position: relative; border: 1px solid #000;}
#one {margin-top: 320px;}
#two {height: 300px; background: #eee; position: absolute; top: 0; left: 0; }
<div id="wrap">
<div id="one"><p>the first variable div</p><p>more text here</p></div>
<div id="two">the second fixed height div</div>
</div>