Results 1 to 2 of 2

Thread: Google Map API and CSS

  1. #1
    Join Date
    Jul 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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?

  2. #2
    Join Date
    Sep 2008
    Location
    Seattle, WA
    Posts
    135
    Thanks
    1
    Thanked 11 Times in 11 Posts

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •