Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Centered Drop Down Menu Help

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #39951
    grindleydesigns
    Participant

    I’m having a heck of a time getting the desired effect out of a drop down menu. I would like this to be done with only css, and it has to be able to have menu items added and removed. What I’m hoping to get is a centered horizontal menu with drop downs (when needed). I get close but can’t seem to make the drop down stay down when hovered over. It appears to be working with just the menu in Codepen, but in my page it breaks for some reason… I’m pulling my hair out and could really use some advice on this. Thanks much for any help!

    Here is a link to codepen:
    [http://codepen.io/michaelgrindley/full/uxqce](http://codepen.io/michaelgrindley/full/uxqce “Codepen example”)

    #110519
    djrolstad
    Participant

    put this in codepen.io

    #110531
    kevinvance
    Participant

    @grindleydesigns I see in Codepen that you’re not using any kind of reset for the example. Are you using one in your project? Could the discrepancy be due to something in your reset cascading down?

    #110535
    kevinvance
    Participant

    (also don’t forget Codepen gives you the option to link up your own external stylesheet if you need to)

    #110542
    GMB
    Participant

    What kgscott284 said. Your CodePen example works fine. Without access to the page that’s breaking, it’s not possible to say what the problem might be.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.