[map module0.5.1] alignment issues in IE

floridave
floridave's picture

Joined: 2003-12-22
Posts: 25961
Posted: Fri, 2006-05-12 19:47

In another thread OwenF wrote:

OwenF wrote:
I may not be following this properly - but whats going on with

http://d2h.net/blog/v/dr_who/2006/

when viewed in IE? The map is centered in the page, but its then lining up the lefthand side of the map with the center of the map window... FF is fine...

I've just experienced the same issue when trying this release.

In IE you can see the issue:
http://d2h.net/blog/wp-gallery2.php?g2_view=map.ShowMap

There is a known bug in the Google map API. IE positions the map div incorrectly if the map is contained inside something else that has align="center" or align="right".
See: http://www.econym.demon.co.uk/googlemaps/bugs.htm#align

Don’t know when google will fix. One could edit the template to remove the align I guess.

 
OwenF

Joined: 2005-04-16
Posts: 19
Posted: Fri, 2006-05-12 20:01

argh - knew I meant to post something else today.

Thanks for pointing that out - i'd spotted it last night just before I went to bed and forgot to update my post.

I centered mine using margin-left/right in css and thankfully that stops the map going awol in IE. Hopefully they will put a fix in place soon, but at least it can be worked around.

-----------------------------
http://www.gonewalkabout.info

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25961
Posted: Fri, 2006-05-12 22:12

For others

.themap { 
          margin-left:auto;
          margin-right:auto;
          text-align:center;
}

seems to work if you want the map to be center.

Dave

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Sat, 2006-05-13 16:18

I'll get that added to the files :-)
-------------------------
The Termite :-)