Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS for fluid Google Map with sidebar for search results
    text
    copied!<p>I plan to include google map using javascript api to show search results for my site. Below is how i want the layout </p> <p>On top would be header where i would display my common navigation panel . </p> <p>Sidebar on left -it should be the search result shown as a list view . Its height should be equal to the browser window and on overflow it should scroll .</p> <p>Map area - It is the google map on which i would show the location of the search results . This should be such that it fills all the space available leaving the header and sidebar</p> <p>basically it should look something like <a href="http://www.foodtrucksmap.com/la/" rel="nofollow"> this website</a> or the normal <a href="http://maps.google.com/maps?btnG=1&amp;pws=0&amp;q=food" rel="nofollow">google places search </a></p> <p>html code</p> <pre><code>&lt;div class="wrapper_test" &gt; &lt;div class="full_map" id="search_map"&gt; &lt;div id="map_canvas" style="width:100%; height:100%"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="test_left" id="search_result" &gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>css code</p> <pre><code> .wrapper_test{ overflow:auto; height:100%; width:100%; } .test_left{ width:530px; background-color:#006666; height:100%; float:left; overflow:scroll; overflow-style:auto; z-index:10; position:absolute; top:0px; overflow-x:hidden; } .full_map{ height:100%; background-color:#FFCC00; overflow:scroll; overflow-style:auto; position:relative; left:530px; overflow-x:hidden; /*border:5px solid #fff;*/ } </code></pre> <p>I am not able to do it properly.the full map takes up the whole screen rather than the visible space on right of sidebar.</p> <p>Please help . Links for examples are invited .</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