View Full Version : Google Map API and CSS
penguins87
08-27-2009, 10:40 PM
I am completely confused so I hope someone may be able to answer my question. I am trying to place my Google Map API canvas inside a div and it works fine when its position is relative, but when I change it to fixed, the map gets thrown off. The div works fine but the actual map is not. Half the map is not displayed and the markers are out of line. Does anyone understand why this may be happening?
simcomedia
09-16-2009, 09:26 PM
If you're trying to make a div position: absolute; you have to make sure it's inside another that is set at position: relative; since the absolute directions (top, left) are set from that point.
You can also just skip that parameter and just use the float and margins to put it where you want.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.