I'm trying to do a template with a
header + sidebar (half page / full height) + google map (half page / full height)
In the jsfiddle, is difficult to see the details, but gives me a scrollbar in the side of the browser which I don't want. Besides, the Sidebar is 40px higher (the header's height) than what's supposed to be. And the google map doesn't reach the bottom. So, even though it has height 100%, it's shorter.
I tried to put them in a container, and managed to make it work with a floating header, but it was cutting off the top of the sidebar and the map, which is not ideal.
http://jsfiddle.net/sebababi/TW4uQ/1/
html, body {
height: 100%;
margin: 0px;
padding: 0px;
max-height:100%;
}
#map-canvas {
height: 90%;
margin: 0px;
padding: 0px
float:left;
}
#sidebar{
background-color:grey;
width:50%;
height:100%;
float:left;
}
#header{
background-color:green;
width:100%;
height:40px;
}
<div id="header">header</div>
<div id="sidebar">sidebar</div>
<div id="map-canvas"></div>
Any ideas?