I am trying to use the CSS :not() selector and I have tried several combinations of this and nothing works.
My code is here: http://jsfiddle.net/cLevkr4e/2/
I would like it to not highlight the rest of the containing <li> when hovering over href in #steps .
I would also like that when you hover over the <li> in #steps he #steps hover color change to everything, including anchor tags.
Thus, when you hover over .wa a it should just emphasize this.
When you hover over <li> it should just change the color of everything, including 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>
html css css3
Lsd
source share