Am getting very frustrated with this pure CSS drop down on a site we have in development - Welcome to Charnwood
There are 2 issues - 1. that when you move down from the parent element “Products” towards “The Tor Range” the option disapears. I assume this is due to the gap for the lighter green line? is there a way around this?
Secondly, I have actually defined several items in the drop down, but only the first one is showing?
The display:none; bits were for a completely different bit of the site and I hadn’t noticed the same class names were being used! Have now renamed the menu items to dd1 dd2 etc…which has solved that issue.
I do however need the visual gap between the main menu item and the first item in the drop down. What kind of solution would you be thinking of? Can this still be done purely with CSS? There’s so much Javascript going on with this site that any JS dropdowns we’ve used either don’t work or they stop something else from working.
It’s easy to do via Firebug, but I keep losing track of the changes. Basically, though, remove the top/bottom paddings etc on the top-level LI and a, and instead set a line height on the a that makes it fill the black nav area. Then perhaps you could put a green border on top of the sub UL that overlaps the green border of the nav area. There are perhaps better ways, but that’s a quick solution. The same question came up a day or so ago, and Paul O’Brien had a nice solution using background-clip. I’ll see if I can find it.