jquery: Different div heights for firefox / ie , but

Discussion in 'jQuery' started by 123GoToAndPlay, Jun 5, 2009.

  1. #1
    Hi all,

    I am trying to set the height of two divs equal to each other. The following code works in IE, and it works in firefox when i uncomment the alert???

    
    	test = $("#contentarea").height();
    	//alert(test);
        if($('#contentarea').height() > $('#quote').height())
        {
            $('#quote').css({
                'height':$('#contentarea').height()
            });
        }
        else if($('#quote').height() > $('#maincontent').height())
        {
            $('#maincontent').css({
                'height':$('#quote').height()
            });
        }
    
    Code (markup):
    The test variable returns two different values for firefox (336 px) and ie (546px)???

    any tips?
     
    123GoToAndPlay, Jun 5, 2009 IP