You should just use position: relative since position: absolute expects 
top, right, left, bottom and z-index to be set as well. You can still 
position the div contents with padding and margin even if those are 
negative numbers. otherwise you're looking at {position: absolute; top: 
30px; left: 30px; z-index: 999;} 

Something like {position: relative; text-align: center; margin: 0 auto; 
width: 400px;} will normally center a 400px div.

Patrick 

On Saturday, December 1, 2012 11:32:47 AM UTC-8, Rozza wrote:
>
> I have successfully add a simple map which centers on a location, and 
> displays a custom marker.
>
> I then proceeded  to display the map in a css <DIV> which is 
> POSITION:ABSOLUTE and initially is hidden with DISPLAY:NONE.
>
> When the the user clicks a link the map becomes visible.
>
> HOWEVER the marker is now offset from the center! It appears to think the 
> map is positioned top left of the page.
>
> Anyone come across this problem before?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-api/-/RMWF9mJd3SwJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to