I have a simple web page application that has two floated content divs side by side..
A little piece of jquery sets the height of these divs by looking at the height of the parent div and doing a simple calculation
This approach works great in Firefox and IE.. and it also works the first time in Safari and Chrome...
But when the page is reloaded in Safari or Chrome.. the right and lefts div's magically increase their height by about 200px for no reason.
Do a hard refresh.. and the div heights go back to normal
Please advise! this is very strange -
<div class="holder1" >
<!-- LEFT HAND BOX -->
<div id="left-box" class="half left">
<div class="info-box">
<h2>Left Hand Content</h2>
------------- Left content here----------------------
</div>
</div>
<!-- RIGHT HAND BOX -->
<div id="right-box" class="half right" >
<div class="info-box">
<h2>Right Hand Content</h2>
-------------Right content here----------------------
</div>
</div>
<div class="clearfix"></div>
</div>
<!-- END RIGHT and LEFT BOXES -->
<div> more content here </div>
<script language="javascript">
var new_height = $('#left-box').closest('.holder1').height() -25;
$('#right-box').find('.info-box').height(new_height);
$('#left-box').find('.info-box').height(new_height);
</script>