I'm trying to use a :not()
CSS selector, and I've tried multiple combinations of this and nothing is working.
My code is here: http://jsfiddle.net/cLevkr4e/2/
I would like it to be that when I hover over an href in #steps
, it doesn't highlight the rest of the containing <li>
.
I would also like it that when I hover over an <li>
in #steps
, it applies the hover color change to everything, including the anchor tags.
So when hovering over .wa a
it should just underline that.
When hovering over the <li>
it should just change the color of everything including the anchors to rgb(66, 81, 95)
.
My CSS:
.wa a{
color: rgb(68, 118, 67);
}
.steps {
width:400px;
margin:0 auto;
text-align:left;
line-height: 200%;
}
.steps a:hover {
text-decoration: underline;
}
.steps li:not(a):hover{
cursor: pointer;
color: rgb(66, 81, 95);
}
My HTML:
<div class="steps">
<ul>
<li>Apply an Email To Your Nation</li>
<li>Apply To the <span class="wa"><a href="http://www.nationstates.net/page=un">World Assembly</a></span> With That Email</li>
<li>Join the <span class="wa"><a href="http://www.nationstates.net/page=un">World Assembly</a></span></li>
</div>