Skip to main content

Forums

This topic contains 6 replies, has 0 voices, and was last updated by  everbeta 5 years, 8 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #46177

    everbeta
    Member

    Hi,

    I am trying to code up a design which was provided to me by an art director I am working with. She wants a menu where the items with submenus trigger a dropdown which appears shifted up. I tried adjusting a basic css dropdown just setting a negative top margin on the menu item, which works until you move your cursor off of it, which makes the whole submenu move back down again. The ‘pop up’ submenu would have to stay in the mouseover position until the cursor is moved from it, and needs to have a different background color for rollovers.

    [Here is a link to a screenshot of what I am trying to accomplish](http://everbeta.com/dropdown.jpg)

    Any assistance would be GREATLY appreciated!

    TIA,
    Colin

    #141796

    Paulie_D
    Moderator

    Could you put what you have so far in Codepen for us to tinker with?

    #141802

    everbeta
    Member

    Sure : [Here it is.](http://codepen.io/anon/pen/dciaF “”)

    #141804

    Paulie_D
    Moderator
    #141830

    everbeta
    Member

    Awesome! U da man Paulie!

    #141833

    everbeta
    Member

    Just noticed, the items without sub-menus (‘home’ and ‘contact us’) are also pushed up on rollover – is there any way to prevent this from happening ?

    #141879

    Paulie_D
    Moderator

    Sure, if a menu item has children, give it a class of something like erm…`.has-children` and put the hover state on that.

    Like this: http://codepen.io/Paulie-D/pen/c86abdb124713c59e0f165990b75caba

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

icon-link icon-logo-star icon-search icon-star