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 9055035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:50:40+00:00 2026-06-16T13:50:40+00:00

I have a full screen google map application with a navbar on the top.

  • 0

I have a full screen google map application with a navbar on the top.

So i have a setup like this:

<div class="navbar">
    <nav bar stuff......>
</div>
<div id="mapcanvas"></div>

with the mapcanvas element having height and width to be 100%.

However, the mapcanvas seems to overflow out the page and the the entire page could scroll down the page by the amount of the navbar.

How would i go about fixing that?

  • 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-16T13:50:42+00:00Added an answer on June 16, 2026 at 1:50 pm

    Maybe try adding navbar-fixed-top to your navbar class.

    <div class="navbar navbar-fixed-top">
        <nav bar stuff......>
    </div>
    

    If you don’t want the navbar to be over the map set the #mapcanvas as this (works till IE7 – haven’t tried ie6)

    html,body {width:100%;height:100%;margin:0;padding:0;}
    
    #mapcanvas {
        background:red;display: block;
        position:absolute;
        height:auto;
        bottom:0;
        top:0;
        left:0;
        right:0;
        margin-top:50px; /* adjust top margin to your header height */
    }
    <div id="mapcanvas">asdf</div>
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a full screen Google map with HTML/CSS toolbars overlaid on the map,
I have a Silverlight application running full screen. Is there a way i can
I have a simple app with a full screen UIWebView. This contains HTML generated
I have a video view that is full screen and would like to trigger
I'd like to create a full screen android gallery. In this gallery I would
I have a full page google map that i want to be able to
I have a google map integrated on part of my page. I would like
I have google maps api as my full screen background that can be resized
I have a working implementation of full screen working for Safari, Firefox, and Google
I have a navbar and 100% x 100% google map in my app. I

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.