The color doesn't change when I hover. I don't get what is wrong! I tried changing the hover code to underline and it worked. It just does not work for color. I also don't think it is the main css of the page because link color changes work fine in other links.
CSS:
.cssmenu{
border:0px;
padding:0px;
font-size:16px;
font-weight:bold;
position:absolute;
top: 7px;
width:100%;
}
.cssmenu ul{
position:relative;
left: 50%;
height:35px;
list-style:none;
margin:0;
padding:0;
text-align: right;
}
.cssmenu li{
float:left;
padding:0px;
}
.cssmenu li a{
font-weight:normal;
line-height:35px;
text-decoration:none;
margin:0px;
padding:0px 25px;
text-align:center;
font-size: 18px;
transition:color 0.5s;
-moz-transition:color 0.5s; /* Firefox 4 */
-webkit-transition:color 0.5s; /* Safari and Chrome */
-o-transition:color 0.5s; /* Opera */
}
.cssmenu li a:hover {
color:#39F;
}
HTML:
<div class="cssmenu">
<ul>
<li><a href='index.html'><span>Home</span></a></li>
<li><a href='about.html'><span>About</span></a></li>
<li><a href='products.html'><span>Products</span></a></li>
<li><a href='contact.html'><span>Contact Us</span></a></li>
</ul>
</div>