Having 2 problems with nav bar
1) I can't change text color. Tried diff hex values, didn't work.... How do I change text color?
2) I want nav menu items to change to italic when on hover AND on active state (so for example, when i'm on about page, "about" is italic.
I tried this:
#nav li a:hover {
font-style: italic;
}
#nav li a:active {
font-style: italic;
}
but ^ doesn't do anything.
When I try the following:
a:hover, a:active {
font-style: italic;
}
Text does become italic on hover, BUT not on active state. Also, I only want to apply this italic on hover/active state effect only to nav bar items, not to other links, so this won't work either.
Would appreciate your help!!
.nav {
height: 58px;
margin: 0;
margin-left: 0px;
width: 100%;
}
.nav ul {
position: absolute;
right: 0px;
height: 0px;
display: block;
font-family: "Adobe Garamond Pro";
list-style: none;
margin: 0;
padding: 21px 40px;
color: #A6A6A6 !important;
}
.nav li {
font-size: 19px;
float: left;
color: #A6A6A6 !important;
margin-left:40px;
font-family: "Adobe Garamond Pro";
width: 58px;
}
#nav li a:hover {
font-style: italic;
}
#nav li a:active {
font-style: italic;
}
Also html
<ul>
<li class="nav-work"><a href="/">Work</a></li>
<li class="nav-about"><a href="/about.html">About</a></li>
<li class="nav-contact"><a href="/contact.html">Contact</a></li>
</ul>