Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-18-2013, 06:06 AM   PM User | #1
operapixie
Regular Coder

 
Join Date: Nov 2011
Posts: 129
Thanks: 11
Thanked 0 Times in 0 Posts
operapixie can only hope to improve
Question Unable to click on drop-down menu items

Hi there,
I'm nearly done with this site, and I've modified the heck out of the template the client chose. But suddenly I've got an issue with my menus that wasn't there earlier. I'm sure I screwed something up in the CSS, but I've been staring at it for so long now I know it's at the point where I need a fresh pair o eyes.

This is the development site: http://dev.yourbusybee.com/kaleco2/galleries/

The issue is this:
If you mouseover the menu item "Galleries" or "Color Bar", you get a nice drop-down. This is lovely. And you can mouseover and click on the first of these drop-downs. But if you try to mouse down any further, the menu disappears. AGHHHHHH

But the menu works mostly ok on the homepage (there seem to be some slight spacing issues, but otherwise the dropdowns are clickable. Grrrrrr

Is this a z-index thing? I don't know. I'm just frustrated.

Any help will be greatly appreciated.

Note: I don't pretend to be an expert at ALL. I fiddle around and figure stuff out.

~Laura

Last edited by operapixie; 01-18-2013 at 06:15 AM..
operapixie is offline   Reply With Quote
Old 01-19-2013, 06:38 PM   PM User | #2
Frankie
Regular Coder

 
Join Date: Sep 2011
Posts: 286
Thanks: 3
Thanked 33 Times in 33 Posts
Frankie is an unknown quantity at this point
That's a javascript-based menu. You might want to try in the javascript forum. If not, or if no response, try http://www.htmldog.com/articles/suckerfish/dropdowns/. Halfway the page you will find multi-level menus.

If the Suckerfish page goes to fast for you or if you like an alternative introduction to CSS-based menus, start with my tutorial, linked from my signature.
__________________
Frank

How to: Target IE in, Position in, Center in, Create a Fixed ('Sticky') Footer with, and Create a Drop-Down/Fly-Out Menu with CSS: Website Laten Maken Amsterdam.
Frankie is offline   Reply With Quote
Old 01-20-2013, 04:36 AM   PM User | #3
operapixie
Regular Coder

 
Join Date: Nov 2011
Posts: 129
Thanks: 11
Thanked 0 Times in 0 Posts
operapixie can only hope to improve
Oh goodness. I had no idea this was likely to be a javascript issue. My apologies. I will go post over there right now! Thanks so much for taking the time to let me know that :-)

~Laura
operapixie is offline   Reply With Quote
Old 01-20-2013, 08:54 AM   PM User | #4
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,817
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
No, this is a css issue - that is a suckerfish menu. There are two issues: #color_header is behind #main, and within #color_header .mainmenu is behind #pagetitle. Both of these mean that the drop down menu loses focus on :hover when the mouse moves down, and so the menu disappears.

Have a try making the following amendments to your css (style.php), in red:

Code:
#color_header {
    background-color: transparent;
    background-image: none;
    margin-top: -85px;
    max-height: 40px;
    position: relative;
    z-index:3
}

.mainmenu {
    background: none repeat scroll 0 0 transparent;
    height: 3em;
    position: relative;
    z-index: 2;
}

div#pagetitle.clearfix.row {
    background: none repeat scroll 0 0 transparent;
    position: relative;
    z-index: 1;
}
Incidentally, you have a style tag located between your head and body tags. I'd sort that as it may lead to unexpected behaviour.
__________________
Use the W3C HTML Validator and CSS Validator to check your code and Firebug to see what css is applied to an element
Read Steve Krug's book Don't Make Me Think - essential reading on web usability
I don't recommend much, but I do recommend Clook for UK web hosting

Last edited by SB65; 01-20-2013 at 08:59 AM..
SB65 is offline   Reply With Quote
Old 01-20-2013, 01:16 PM   PM User | #5
Frankie
Regular Coder

 
Join Date: Sep 2011
Posts: 286
Thanks: 3
Thanked 33 Times in 33 Posts
Frankie is an unknown quantity at this point
Quote:
No, this is a css issue
Upon closer examination: you're right. Because the menu has a roll-out effect, I thought it was a JS-menu. But with JS off, it still works and shows the same problem. Only the roll-out effect is then no more.

Go with SB65's advice, Laura.
__________________
Frank

How to: Target IE in, Position in, Center in, Create a Fixed ('Sticky') Footer with, and Create a Drop-Down/Fly-Out Menu with CSS: Website Laten Maken Amsterdam.
Frankie is offline   Reply With Quote
Old 01-20-2013, 07:17 PM   PM User | #6
operapixie
Regular Coder

 
Join Date: Nov 2011
Posts: 129
Thanks: 11
Thanked 0 Times in 0 Posts
operapixie can only hope to improve
Thank you so much, SB65! Huge improvement! It still sits underneath the breadcrumbs but I'm sure I can solve that.

I am curious, though, whether there's a way to make the mouseoever a bit easier. It seems like I have to maneuver my mouse directly over the arrow at the top of the drop down in order to get to those menu items. I would prefer to be able to just drag my mouse from wherever on the main menu item I happened to be (which would still be along the length of the drop-down), and get to the sub-menu. Does that make any sense?

~Laura
operapixie is offline   Reply With Quote
Old 01-20-2013, 08:46 PM   PM User | #7
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,817
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
Breadcrumbs is just another z-index issue - set the z-index on the element to lower than that on the menu element, and make sure to set position:relative on the breadcrumbs as well.

I can't see your issue with navigating to the dropdowns using FF18. In what browser do you see this?
__________________
Use the W3C HTML Validator and CSS Validator to check your code and Firebug to see what css is applied to an element
Read Steve Krug's book Don't Make Me Think - essential reading on web usability
I don't recommend much, but I do recommend Clook for UK web hosting
SB65 is offline   Reply With Quote
Old 01-22-2013, 10:22 PM   PM User | #8
operapixie
Regular Coder

 
Join Date: Nov 2011
Posts: 129
Thanks: 11
Thanked 0 Times in 0 Posts
operapixie can only hope to improve
I'm also using FF18.0. Hmmmm
operapixie is offline   Reply With Quote
Old 01-23-2013, 07:42 AM   PM User | #9
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,817
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
Have a try making your css:

Code:
ul.sub-menu {
    margin-top: -27px;
}
I think the sub menu may just be positioned a bit low - with the result that the :hover state is lost when navigating from main to submenu.
__________________
Use the W3C HTML Validator and CSS Validator to check your code and Firebug to see what css is applied to an element
Read Steve Krug's book Don't Make Me Think - essential reading on web usability
I don't recommend much, but I do recommend Clook for UK web hosting
SB65 is offline   Reply With Quote
Old 01-26-2013, 08:35 PM   PM User | #10
operapixie
Regular Coder

 
Join Date: Nov 2011
Posts: 129
Thanks: 11
Thanked 0 Times in 0 Posts
operapixie can only hope to improve
Dang! A difference of 2 pixels seems to have fixed that! THANK you. The only thing I still see as a slight issue is now the sub-SUB menu positioning. It's just slightly high. But I don't see a separate class from sub-menu in order to separately position that down a tad. Any ideas there?

Also, you'd noted that there was a style tag after the body that might cause problems. I think I know what that was in reference to, but I would appreciate if you could check to see if I've solved it. I had a code snippet for determining if a post was in a particular category and if it was not, to use some different styling. I found that I'd put that in just below the </head> tag. I've now moved it to above that area.
operapixie is offline   Reply With Quote
Old 01-27-2013, 08:13 AM   PM User | #11
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,817
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
You don't currently have a style setting for the sub-sub-menu, no, but you can create one:

Code:
.sub-menu .sub.menu{
   ...styling...
}
You can check the rendered code by viewing the source of the page - Ctrl+U in everything except IE, and Page > View Source in IE. Yes, that style snippet is now in the head. The validator (see link in my sig) will also pick up these sorts of things for you.
__________________
Use the W3C HTML Validator and CSS Validator to check your code and Firebug to see what css is applied to an element
Read Steve Krug's book Don't Make Me Think - essential reading on web usability
I don't recommend much, but I do recommend Clook for UK web hosting
SB65 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:16 AM.


Advertisement
Log in to turn off these ads.