Hello, I'm using google maps for the page. I have to set up the layer with map with 100% height in 100% width minus 200 px for the toolbar to the left:
<div id="toolbar" style="float: left;width: 20%">left</div>
<div id="map" style="float: left;width: 80%;height: 100%;"></div>
This code works, but the toolbar resizes. And I need only 200 px there. How can I do that saving the positioning of the map? The code:
<html>
<head>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<style>
body, html
{
width: 100%;
height: 100%;
}
body
{
margin: 0;
}
</style>
</head>
<body>
<script>
$(document).ready(function () {
var city = new google.maps.LatLng(56.3, 44)
var mapOptions = {
zoom: 12,
center: city,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
map = new google.maps.Map($('#map').get(0), mapOptions)
})
</script>
<div id="toolbar" style="float: left;width: 20%">left</div>
<div id="map" style="float: left;width: 80%;height: 100%;"></div>
</body>
</html>