Css correct selector -
i have follownig code:
<ul class="menu"> <li class="leaf"><a href="#">first</a></li> <li class="leaf"><a href="#">second</a></li> <li class="leaf"><a href="#">third</a></li> </ul>
and css
.menu li:hover > a, .menu li.active > a{ color: white; text-decoration: underline; font-weight: bold; }
when hover item color change. when select item, css code doesn't work. want when select link , go other page, link displayed in white. what's selector? thought li.active > a, doesn't work.
as alter page "forgotten". need javascript or jquery this.
also utilize :visited attribute links clicked 1 time white then.
hope helps.
css-selectors
No comments:
Post a Comment