-
Google Map API and CSS
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?
-
-
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.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks