Search This Blog

Saturday, August 20, 2011

Hover in CSS does not Work?

Im trying to make a drop down menu bar purely

using HTML & CSS, but one thing that is really

bothering me is that it doesnt change to the backgroung color

when I hover over the links I dont know why..?


Heres the HTML, I used uls, div and li to create a

drop down menu:







And heres the CSS im ussing trying to make the navigation bar:





 navMenu{
margin:0;
padding: 0;
position: relative;
left: 150px;
top: 130px;
}

navMenu ul{
margin:0;
padding: 0;
line-height: 20px;
}

navMenu li {
margin:0;
padding: 0;
list-style:none;
float: left;
position:relative;
background:#999;

}

navMenu ul li a{
text-align:center;
font-family:"Courier New", Courier, monospace;
text-decoration: none;
height: 30px;
width: 150;
display: block;
color: FFF;
border: 1px solid 000;

}

navMenu ul ul{
position: absolute;
visibility: hidden;
top: 32px;
}

navMenu ul li:hover ul{
visibility:visible;

}

navMenu li: hover {
background: 09F;
}




So if anyone could help me I will deeply appreciate it! Thanks

http://bit.ly/oXaDmd

No comments:

Post a Comment