Make sure the code is inside the $(window).load [not $(document).ready ]
$(window).load(function () {
newhgt = $('#thetext1').find('div.rhs').css("background", "pink").height();
});
Make sure the code is inside the $(window).load [not $(document).ready ]
$(window).load(function () {
newhgt = $('#thetext1').find('div.rhs').css("background", "pink").height();
});