Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9075913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:59:03+00:00 2026-06-16T18:59:03+00:00

I have Google Maps included on a page. The left side is meant to

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T18:59:04+00:00Added an answer on June 16, 2026 at 6:59 pm

    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 in 0 since the only other element of body, <div id="Menu">, is position: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 add position:fixed to the Content div instead, see below:

    view here: http://jsbin.com/ulalac/

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <!--
    **** PHP_INSERT_LOCATION_1 *****
    <?php echo session_id(); ?>
    **** PHP_INSERT_LOCATION_2 *****
    <?
    $ray=mysql_query("select * from rayon");
    while($r=mysql_fetch_object($ray)) {
        echo '<option value="'.$r->rayon.'">'.$r->rayon.'</option>
    ';
    }
    ?>
    -->
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
        <title>NN MAP</title>
        <link rel="stylesheet" type="text/css" media="all" href="http://nn-gis.com/mp/css/form.css" />
        <style type="text/css">
        /*<![CDATA[*/
        html,body,div#Content,div#map{height:100%;}
        div#Content{width:100%;position:fixed;}
        /*]]>*/
        </style>
        <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3.exp&amp;sensor=false"></script>
        <script type="text/javascript" src="http://nn-gis.com/mp/js/main.js"></script>
        <script type="text/javascript" src="http://nn-gis.com/mp/js/line.js"></script>
        <script type="text/javascript" src="http://nn-gis.com/mp/js/zoom.js"></script>
    </head>
    <body onload="load()">
    <div id="Content">
        <div id="map"></div>
    </div>
    <div id="Menu">  
        <fieldset>
            <legend>Control Panel</legend> - <a href="logout.php">Logout</a>
            <br/>- <a href="javascript:void(0);" onclick="window.open('change.php?sid=PHP_INSERT_LOCATION_1','Reservoirs','height=300, width=460,scrollbars=no');">Change Password</a>
        </fieldset> 
        <fieldset>
            <legend>Active Layers</legend>
            <div class="glossymenu">
                <a class="menuitem submenuheader" href="#" >Points</a>
                <div class="submenu">
                    <input type="checkbox" id="intake" onclick="boxclick(this,'intake')" checked="checked"/> <label>Intake</label>
                    <br/>
                    <input type="checkbox" id="reservoir" onclick="boxclick(this,'reservoir')" checked="checked"/> <label>Reservoirs</label>
                    <br/>
                    <input type="checkbox" id="wps" onclick="boxclick(this,'wps')" checked="checked"/> <label>WPS</label>
                    <br/>
                    <input type="checkbox" id="wtp" onclick="boxclick(this,'wtp')" checked="checked"/> <label> WTP</label>
                    <br/>
                    <input type="checkbox" id="wwps" onclick="boxclick(this,'wwps')" checked="checked"/> <label>WWPS</label>
                    <br/>
                    <input type="checkbox" id="wwtp" onclick="boxclick(this,'wwtp')" checked="checked"/> <label>WWTP</label>
                    <br/>
                </div>
            </div>
        </fieldset>
        <fieldset>
            <legend>Active Lines</legend>
            <form action="">
                <select id="rayon" onchange="line();">
                    <option value="rayon">Select Rayon</option>
                    <option value="rayon">Qebele</option>
                </select>
            </form>
        </fieldset>
        <fieldset>
            <legend>Projects</legend>
            <form action="">
                <select id="countyLocation" onchange="zoom();search();">
                    <option value="center">Select Title</option>
                    <!--
                    PHP_INSERT_LOCATION_2
                    -->
                </select>
            </form>
        </fieldset>
        <fieldset>
            <legend>Tables</legend>
                - <a href="javascript:void(0)" onclick="window.open('data/show.php?page=Reservoirs','Reservoirs','height=600, width=660,scrollbars=no')">Reservoirs</a>
                <br/>
                - <a href="javascript:void(0)" onclick="window.open('data/show.php?page=TBL_MAIN_INV','TBL_MAIN_ING','height=600, width=1024,scrollbars=no')">Main investment</a>
                <br/>
                - <a href="javascript:void(0)" onclick="window.open('data/show.php?page=TBL_MAIN_INV_BID','linkname','height=600, width=960,scrollbars=no')">Bidding Procedures</a>
                <br/>
        </fieldset>
        <fieldset>
            <legend>Analysis</legend>
            - <a href="javascript:void(0)" onclick="window.open('backup.php','backup','height=600, width=660,scrollbars=no')">Backup Data</a>
            <br/>
            <br/>  
            <br/>
        </fieldset>              
    </div>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have google maps added to UIWebview. I want to zoom the map to
i have google Maps and when the user touch any point in the map
I have a marker on google maps on my website. I want the marker
I have a GWT web-app with a nearly full page Google map window. Inside
I have a show page that should show a business and a google map
I am coding Google maps v2 into my app but have run into an
Here's my conundrum: I have a page that uses Google Maps V3 and jQuery.
I have a question concerning Google Maps. On the contact page of a website
Aside from jQuery and Google Maps, I have two scripts included in the head
I am working with Google Maps and I want to load the map in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.