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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:17:12+00:00 2026-06-07T01:17:12+00:00

I tried, but totally failed at positioning an interface that will go above a

  • 0

I tried, but totally failed at positioning an interface that will go above a google maps layout. What I tried to do is this:

enter image description here

But I ended up with this

The format I have is like this:

<div id="GoogleMap"> // the containing google maps layer
    <!-- map will go here <div id="GoogleMapCanvas"></div> --> //eventual map
    <div class="map-topmenu"></div>   //my interface
    <div class="map-leftmenu"></div>  //my interface
    <div class="map-rightmenu"></div> //my interface
    <div class="map-bottommenu"></div>//my interface
</div>

I succeeded in making the top menu horizontally centered, and 10px from the top of the screen.

I have been unable to center vertically the left and right menu’s, and I started noticing that the code needed to center the left menu was becoming weird.
And as for the bottom menu, I utterly failed – however many different methods I tried.

Can anyone please look at my code and let me know where I messed up? Thanks so much!

body {
    border: 0 none;
    margin: 0;
    padding: 0;
    height:100%;
}
#GoogleMap {
    position:absolute;
    background-color: grey;
    background-position: 50% 50%;
    background-repeat: repeat;
    height: 100%;
    overflow: hidden;
    width: 100%;
}
.map-topmenu {
    height: 52px;
    width: 353px;
    background-image: url(http://i.imgur.com/KlyKR.png);
    margin-top: 10px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
}
.map-leftmenu {
    height: 263px;
    width: 77px;
    margin-left: 10px;
    top:50%;
    position: absolute;
    margin-top: -150px;
    background-image: url(http://i.imgur.com/Q3d1r.png);
}

.map-rightmenu {
    background-image: url(http://i.imgur.com/si6dl.png);
    height: 147px;
    width: 280px;
    margin-right: 10px;
    float: right;
    top:50%;
}
.map-bottommenu {
    background-image: url(http://i.imgur.com/iDmuP.png);
    height: 52px;
    width: 312px;
    margin-right: auto;
    margin-bottom: 10px;
    bottom: 0;
    margin-left: auto;
}
  • 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-07T01:17:14+00:00Added an answer on June 7, 2026 at 1:17 am

    Use absolute positioning with negative margins:

    http://jsfiddle.net/PJTDy/3/

    #GoogleMap {
        position:absolute;
        background-color: grey;
        height: 100%;
        overflow: hidden;
        width: 100%;
    }
    
    .map-topmenu, .map-leftmenu, .map-rightmenu, .map-bottommenu {
        z-index:1;
        position:absolute;
        background:blue;
    } 
    .map-topmenu {
        top:0;
        left:50%;
        margin-left:-176px;
        height: 52px;
        width: 353px;
    }
    .map-leftmenu {
        height: 263px;
        width: 77px;
        left:0px;
        margin-top:-131px;
        top:50%;
    }
    .map-rightmenu {
        height: 147px;
        width: 280px;
        right:0;
        top:50%;
        margin-top:-73px;
    }
    .map-bottommenu {
        height: 52px;
        width: 312px;
        bottom: 0;  
        left:50%;
        margin-left:-156px;   
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried but i was unable to parse this json object which comes from
I have tried this but it does not work (even if I specify .wav
I have tried this but it doesn't work: tell application Preview set myfile to
I just installed the jQuery Lightbox Plugin on my wordpress blog. But that totally
I don't totally understand how all this works, but I'm getting this error: Fatal
I might be going about this in totally the wrong way but this is
I have looked and tried but don't see where I can stop some being
How to create a generic method which can call overloaded methods? I tried but
Adding the row one by one in the button click.. (i tried but its
How do I escape the & in the app settings? I've tried \ but

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.