I want to set both #map_canvas
and #content
's height, but this doesn't seem to work:
$(['#map_canvas','#content']).css("height", ($(window).height()-270 + "px"));
Does anybody know how to do this?
I want to set both #map_canvas
and #content
's height, but this doesn't seem to work:
$(['#map_canvas','#content']).css("height", ($(window).height()-270 + "px"));
Does anybody know how to do this?
Try (you kinda have extra parentesis in there):
$(['#map_canvas','#content']).css("height", $(window).height()-270 + "px");
Try this:
$('#map_canvas, #content').height(window.height-270);
I do something similar with google earth integration on a current project...
jQuery("#map_canvas,#content").css("height", (jQuery(window).height() - 270 ) + "px");