Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>@Katsuri, Thanks for your solution, it works great! </p> <p>But for others who wants to have a <strong>left fixed-sized column</strong> and a <strong>Gmap div filling the entire right space</strong>, here is my code modified from Katsuri's:</p> <p>live example: <a href="http://jsfiddle.net/EZbfN/">http://jsfiddle.net/EZbfN/</a> source code: </p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;title&gt;Google map test&lt;/title&gt; &lt;script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"&gt;&lt;/script&gt; &lt;style type="text/css"&gt; html, body { margin:0; padding:0; height:100%; /* needed for container min-height */ } div#container { height:100%; width:100%; /*height:auto !important; real browsers */ height:100%; /* IE6: treaded as min-height*/ min-height:100%; /* real browsers */ margin:0 auto; min-height:100%; overflow:hidden; position:relative; } div#header { height:50px; position:relative; } div#leftCol { left:0; bottom:0; top:0; overflow:hidden; padding-bottom:35px; margin-top:55px; position:absolute; width:300px; } div#content { right:0; bottom:0; top:0; left: 300px; overflow:hidden; padding-bottom:35px; margin-top:55px; position:absolute; } div#footer { position:absolute; clear:both; width:100%; height:20px; bottom:0; /* stick to bottom */ background:#fff; border-top:1px solid #ccc; } .paddedContent { height:100%; margin: 5px; border: solid 1px red; } &lt;/style&gt; &lt;script type="text/javascript"&gt; function initialize() { var latlng = new google.maps.LatLng(52.397, 1.644); var myOptions = { zoom: 8, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); } &lt;/script&gt; &lt;/head&gt; &lt;body onload="initialize()"&gt; &lt;div id="container"&gt; &lt;div id="header"&gt; &lt;h1&gt;Title here...&lt;/h1&gt; &lt;/div&gt; &lt;div id="leftCol"&gt; &lt;div class="paddedContent"&gt;This is the left column&lt;/div&gt; &lt;/div&gt; &lt;div id="content"&gt; &lt;div class="paddedContent"&gt; &lt;div id="map_canvas" style="width: 100%; height: 100%;"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="footer"&gt; This footer is absolutely positioned &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Enjoy!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload