- This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I can’t get my drop down menu to display properly when it is hovered. I used the following code:
ul.nav li ul {
display: none;
position: absolute;
z-index: 9999;
background: #3c3c3b;
white-space: nowrap;
}
ul.nav li ul a{
display: block;
}
View the full code here: http://www.lwebdesigns.net/designs/newsroom/newsroom.html
I think it should just be
.nav ul { display: none; }
.nav ul:hover li { display: block; position: absolute; }
Make sure your navigation is set to position: relative;
That didn’t work :(
I’ve just coded this up for you, this is kind of what you’re after I think.
That works great! Now how do I get it to work with the sub menu items? They automatically display.
Do you mean a drop down of the drop down menu?
Yes!
Nice work @kevin11189