$(window).bind("load", function () { var height = $(document.body).height(); $('.syntaxhighlighter').height(height); });