Pennimus
07-10-2007, 12:34 AM
Hi,
I'm trying to implement a suckerfish style drop down menu. I'm using the Son of suckerfish menu (http://www.htmldog.com/articles/suckerfish/dropdowns/) from HTML Dog for this, slightly modified for my needs.
I've got it mostly working how I want, however I'm having a couple of issues that I hope someone can help with.
See http://s129759989.websitehome.co.uk/ for my current progress.
1) The blue highlight in the bar when you hover over a menu disappears when you move your mouse down to a sub menu item. Is there any way to make the blue highlight stick around while hovering over any item in the menu?
2) As well, in IE, the drop down disappears as soon as you try and move your mouse down on to it.
Relevant code:
<ul id="nav">
<li><a href="#">Menu 1</a>
<ul>
<li><a href="#">Item 1</a></li>
<li><a href="#">Item 2</a></li>
<li><a href="#">Item 3</a></li>
<li><a href="#">Item 4</a></li>
<li><a href="#">Item 5</a></li>
</ul>
</li>
<li><a href="#">Menu 2</a>
<ul>
<li><a href="#">Item 1</a></li>
<li><a href="#">Item 2</a></li>
<li><a href="#">Item 3</a></li>
<li><a href="#">Item 4</a></li>
<li><a href="#">Item 5</a></li>
</ul>
</li>
</ul>
#nav, #nav ul {
list-style: none;
font-size: 14px;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 2px;
color: #0066CC;
}
#nav a {
display: block;
}
#nav li {
float: left;
}
#nav a, #nav .here {
padding: 18px 18px 3px 20px;
}
#nav ul li {
clear: left;
padding: 0;
}
.here, #nav a:hover, #nav a:focus {
background-image: url(../graphics/background.nav.gif);
background-repeat: repeat-x;
background-position: top;
}
#nav ul li a {
padding: 2px 18px 2px 20px;
text-transform: none;
}
#nav ul li a:hover, #nav ul li a:focus {
background-image: none;
}
#nav li ul {
position: absolute;
left: -999em;
z-index: 10;
}
#nav li:hover ul, #nav li.sfhover ul {
left: auto;
}
Thanks in advance for any help.
I'm trying to implement a suckerfish style drop down menu. I'm using the Son of suckerfish menu (http://www.htmldog.com/articles/suckerfish/dropdowns/) from HTML Dog for this, slightly modified for my needs.
I've got it mostly working how I want, however I'm having a couple of issues that I hope someone can help with.
See http://s129759989.websitehome.co.uk/ for my current progress.
1) The blue highlight in the bar when you hover over a menu disappears when you move your mouse down to a sub menu item. Is there any way to make the blue highlight stick around while hovering over any item in the menu?
2) As well, in IE, the drop down disappears as soon as you try and move your mouse down on to it.
Relevant code:
<ul id="nav">
<li><a href="#">Menu 1</a>
<ul>
<li><a href="#">Item 1</a></li>
<li><a href="#">Item 2</a></li>
<li><a href="#">Item 3</a></li>
<li><a href="#">Item 4</a></li>
<li><a href="#">Item 5</a></li>
</ul>
</li>
<li><a href="#">Menu 2</a>
<ul>
<li><a href="#">Item 1</a></li>
<li><a href="#">Item 2</a></li>
<li><a href="#">Item 3</a></li>
<li><a href="#">Item 4</a></li>
<li><a href="#">Item 5</a></li>
</ul>
</li>
</ul>
#nav, #nav ul {
list-style: none;
font-size: 14px;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 2px;
color: #0066CC;
}
#nav a {
display: block;
}
#nav li {
float: left;
}
#nav a, #nav .here {
padding: 18px 18px 3px 20px;
}
#nav ul li {
clear: left;
padding: 0;
}
.here, #nav a:hover, #nav a:focus {
background-image: url(../graphics/background.nav.gif);
background-repeat: repeat-x;
background-position: top;
}
#nav ul li a {
padding: 2px 18px 2px 20px;
text-transform: none;
}
#nav ul li a:hover, #nav ul li a:focus {
background-image: none;
}
#nav li ul {
position: absolute;
left: -999em;
z-index: 10;
}
#nav li:hover ul, #nav li.sfhover ul {
left: auto;
}
Thanks in advance for any help.