Re: Centering the google map

Discussion in 'HTML' started by Jan C. Faerber, Oct 4, 2009.

  1. On Oct 4, 1:37 pm, Alfred Molon <> wrote:
    > I'm experimenting with google maps:http://www.molon.de/test3/temp2/
    >
    > The map is centered in Firefox and Seamonkey, but not in IE8. What am I
    > doing wrong?
    >
    > The code for the map is as follows:
    > <div id="map_canvas" style="margin-left: auto; margin-right: auto;
    > width: 680px; height: 300px;"></div>
    >
    > and by the way, the margins in IE8 are not what they are in FF and
    > Seamonkey. In IE8 the google map is glued to the top left. Any
    > suggestions?


    And the four button labels "Map", "Satellite", "Hybrid" and "Terrain"
    are greyish.

    I guess you have to use a non-static positioned div element in that td
    and <div id="map_canvas" ... > needs position:absolute; inside that
    'surrounding' div.
    Jan C. Faerber, Oct 4, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andrew Thompson

    FAQ - references to Google/Google Groups

    Andrew Thompson, Jun 20, 2005, in forum: Java
    Replies:
    0
    Views:
    594
    Andrew Thompson
    Jun 20, 2005
  2. Replies:
    2
    Views:
    2,011
    Jeffrey Schwab
    Nov 28, 2005
  3. Krice
    Replies:
    9
    Views:
    276
    Default User
    Apr 25, 2008
  4. JSH
    Replies:
    0
    Views:
    361
  5. Ethan Herdrick
    Replies:
    1
    Views:
    96
    Ethan Herdrick
    May 11, 2006
Loading...

Share This Page