Results 1 to 3 of 3

Thread: Divs within popups not appearing in the right places

  1. #1
    Join Date
    Mar 2008
    Posts
    9
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Question Divs within popups not appearing in the right places

    Hello all. I'm kinda at my wit's end here (I know--short trip ). I'm using the Dropdown/Overlap script from Dynamic Drive, only instead of text links, I'm using Div containers around small graphics to act as pin-points on a map (held within a div "beneath" the pin-point divs). The script works fine in a blank test page--when I mouseover, the hidden div pops up right next to the pin-point and I'm able to put the mouse in the box and click on a link. But when I put that hunk of code into the site, the divs open up about a hundred pixels away from their respective map-points and I can't get the mouse to them in time to click.

    Anyone have any ideas as to why this is? I've tried moving the hidden divs that make up the popups into other div containers, into the same div containers, removing some of the div containers (some of them I need to keep the page elements in line) and banging my head repeatedly against the monitor. Nothing seems to be working. Any help is greatly appreciated.

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    The background map and the popus shoudl be insdie the same div.

    Then, set position:relative in the container div.

    Bascially the popups are absolutly positioned in relation to the page instead of the div they are in. Position:relative will achieve that.

  3. The Following User Says Thank You to Medyman For This Useful Post:

    jensoko (03-20-2008)

  4. #3
    Join Date
    Mar 2008
    Posts
    9
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the suggestion, Medyman.

    If I've got it right, the container div is named "mapparent." Making it's position relative only knocked my mappoint divs off-kilter. The hidden divs that contain the content of the popups are required by the script to be position: absolute. Any other suggestions?

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
  •