css drop down overflow help

Discussion in 'CSS' started by caligrafx, Apr 30, 2010.

  1. #1
    [​IMG]

    I have this css tricked out drop-down menu that drops down when you hover above it, but I have two problems I see with it.

    1) The over flow is under the main menu, but I want it to still above it when I drops! How can I fix this issue?

    2) There is a couple pixels on the left side of the drop-down when you run your mouse over the links inside of it, how do I fix this?

    Thanks for your time! Here is a live link to the demo version! Demo Link
     
    caligrafx, Apr 30, 2010 IP
  2. mfscripts

    mfscripts Banned

    Messages:
    319
    Likes Received:
    4
    Best Answers:
    8
    Trophy Points:
    90
    Digital Goods:
    3
    #2
    For the first point, try and set a high z-index on the popup menu to see if that puts it on top.
     
    mfscripts, Apr 30, 2010 IP
  3. mfscripts

    mfscripts Banned

    Messages:
    319
    Likes Received:
    4
    Best Answers:
    8
    Trophy Points:
    90
    Digital Goods:
    3
    #3

    I just set a z-index on the class "blogroll" to 10 via Firebug and that sets it above the mid nav fine.
     
    mfscripts, Apr 30, 2010 IP
  4. caligrafx

    caligrafx Active Member

    Messages:
    137
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    83
    #4
    Thanks, I set the z-index to 10 and it sets it above the mid nav but just a little.

    [​IMG]
     
    caligrafx, Apr 30, 2010 IP
  5. caligrafx

    caligrafx Active Member

    Messages:
    137
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    83
    #5
    Anymore help with this would be great! I am still stuck with getting it to over lap the mid menu!

    Thanks,
    Adam
     
    caligrafx, May 3, 2010 IP
  6. Shiloh88

    Shiloh88 Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Maybe set the z-index to something crazy high, like 500? I had to do that once for a drop down...
     
    Shiloh88, May 3, 2010 IP
  7. caligrafx

    caligrafx Active Member

    Messages:
    137
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    83
    #7
    I think I have tried every number possible.

    Adam
     
    caligrafx, May 3, 2010 IP
  8. mfscripts

    mfscripts Banned

    Messages:
    319
    Likes Received:
    4
    Best Answers:
    8
    Trophy Points:
    90
    Digital Goods:
    3
    #8
    I would say it's more to do with a height being set somewhere on that popup menu div rather than it sitting below the other content. If you remove the content within the "wrapper" div below, the popup menu still shows the same. Saying that, I've been through your css and disabled JS also but can't seem to find where it would be...
     
    mfscripts, May 4, 2010 IP
  9. caligrafx

    caligrafx Active Member

    Messages:
    137
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    83
    #9
    Alright thanks for the tip! I will have a look around and see what I can find!

    Thanks,
    Adam
     
    caligrafx, May 4, 2010 IP
  10. caligrafx

    caligrafx Active Member

    Messages:
    137
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    83
    #10
    After playing with it for a little bit I discovered that it has something to do with the divs its inside of! When I copied and pasted that same code on top to the bottom and added a couple of breaks I was able to see the bottom.

    Demo

    I looked for a height setting and didn't find anything! The css is what controls the dropdown on hover there is no javascript to make this work!

    Here is the blog I got the idea and script from! Pro Blog Design
     
    caligrafx, May 4, 2010 IP
  11. stoneRide

    stoneRide Peon

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    you can use javascript
     
    stoneRide, May 6, 2010 IP