CSS Help!
August 14, 2006 12:30 PM
Subscribe
CSS Help! I have a menu which uses links (
tags ) and I want to make it so when I hover over an item in the menu, it makes a list visible!
Here is the thing, I have a menu like this:
a.nav1 {background-position:0 150px;}
a.nav1 .button {background:azure; color:#000; cursor:pointer; display:block; width:128px; height:25px; cursor:hand;}
a.nav1:hover {background-position:0 0;}
a.nav1:hover .button {background:#f80; color:#fff; cursor:pointer; display:block; width:128px; height:25px; cursor:hand;}
And I have a sub-menu using a list, like this:
/* remove the bullets, padding and margins from the lists */
ul.menu {
background:azure;
list-style-type:none;
padding:0;
margin:0;
visibility:hidden;
position:absolute;
width:128px;
height:280px;
top:152px;
}
I want to make it so that when I hover over a1.nav, it makes the ul.menu visible. However this doesnt seem to work if I simply add the line:
a1.nav:hover ul.menu {visibility:visible}
Please help me make it so that when I hover over a1.nav that I can make ul.menu visible!
posted by LoopyG to computers & internet (13 comments total)
1 user marked this as a favorite
posted by LoopyG at 12:30 PM on August 14, 2006