Results 1 to 3 of 3

Thread: Dropdown/Overlapping problem hovering from below

  1. #1
    Join Date
    Oct 2009
    Location
    La Selva Beach, CA
    Posts
    10
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Dropdown/Overlapping problem hovering from below

    1) Script Title: Drop down/ Overlapping Content script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...lapcontent.htm

    3) Describe problem: script works fine - if I hover over the dropdown link image, the pop-up appears... except when the cursor hovers over the image coming from below it. In that case, about 20% of the pop-up appears and then disappears.



    Thanks.
    Last edited by parboy; 03-16-2012 at 07:45 PM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    The reason the drop down DIV prematurely disappears sometimes when you move the mouse in from the bottom of the anchor image becomes more clear if you give the anchor a background color to see just what's included by the anchor:

    Code:
    <style>
    
    #michelin{
    background:green;
    }
    
    </style>
    With the above you should see how the anchor (in this case a DIV) doesn't actually fully engulf the icon inside it, but just partially. So when you move your mouse in from the bottom of the anchor, it hits the green area but then the icon itself (resulting in a mouseout action), causing the revealing DIV to reverse course.

    The solution would be either to register the icon itself as the anchor (instead of the parent DIV), or modify the CSS for the later in a way so that it surrounds the child icon snuggly (with no green area showing afterwards).
    DD Admin

  3. #3
    Join Date
    Oct 2009
    Location
    La Selva Beach, CA
    Posts
    10
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    ddadmin,

    Problem Solved! Thanks for the simple explanation and possible solutions. For the record, I chose the 1st approach of identifying the icon as the anchor instead of the containing div. An easy fix requiring only a minor style change after the div's ID was moved inside to the img tag.

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
  •