Give a div the height of the browser less another div height
1 2 3 4 5 6 7 8 9 10 11 |
<script type="text/javascript"> //alert(window.innerHeight); jQuery( document ).ready(function() { var map_height = window.innerHeight-jQuery("#searchForm").height()-30; jQuery("#map").height(map_height); window.onresize = function() { var map_height = window.innerHeight-jQuery("#searchForm").height()-30; jQuery("#map").height(map_height); } }); </script> |
Leave a Comment