July 7, 2013 at 1:03 pm #46177
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!
ColinJuly 7, 2013 at 1:09 pm #141796
Could you put what you have so far in Codepen for us to tinker with?July 7, 2013 at 1:22 pm #141802July 7, 2013 at 2:42 pm #141804
Little bit like this?July 7, 2013 at 6:20 pm #141830
Awesome! U da man Paulie!July 7, 2013 at 6:40 pm #141833
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 ?July 8, 2013 at 4:46 am #141879
Sure, if a menu item has children, give it a class of something like erm…`.has-children` and put the hover state on that.
You must be logged in to reply to this topic.