I have Google Maps included on a page. The left side is meant to be the menu and right side as content.
I want the left side (menu) to scroll, but the right side, (content, map in this case) to not scroll. I don’t want to use frames or Javascript.
I want do this with this code:
<div id="map" style="width:100%; height:100%; position:fixed;" ></div>
demo: demo
I went through and tried to reformat and fix some element overlap so that it would be more readable, I hope this helps.
Also, I replaced PHP code with the text:
PHP_INSERT_LOCATION_#so that I could run it through the validator and make sure I wasn’t making any mistakes.You said the map was not appearing, this is because the map height is
100%which results in0since the only other element of body,<div id="Menu">, isposition:absolute;. Since nothing is setting the height of body, body remains at a height of 0.To fix the above problem I have added styles of
height:100%;to html, body, and div.Content to make the above mentioned elements the width of the window, since otherwise the will try to occupy the least possible vertical space.Also, the Google Maps scripts seem to add
position:relative;to<div id="map">so you will have to addposition:fixedto theContentdiv instead, see below:view here: http://jsbin.com/ulalac/