for example:
HTML Code:
<ul id="cat-nav" class="nav">
<li class="cat-item cat-item-1"><a href="http://t-clicks.com/blog/?category_name=uncategorized" title="View all posts filed under Apple">Apple</a>
</li>
<li class="cat-item cat-item-3"><a href="http://t-clicks.com/blog/?category_name=helo" title="sdad">Featured</a>
</li>
<li class="cat-item cat-item-4"><a href="http://t-clicks.com/blog/?category_name=business" title="View all posts filed under Buisness & Marketing">Buisness & Marketing</a>
</li>
<li class="cat-item cat-item-5"><a href="http://t-clicks.com/blog/?category_name=gaming" title="View all posts filed under Gaming">Gaming</a>
</li>
<li class="cat-item cat-item-6"><a href="http://t-clicks.com/blog/?category_name=mobile" title="View all posts filed under Mobile">Mobile</a>
</li>
<li class="cat-item cat-item-7"><a href="http://t-clicks.com/blog/?category_name=social-media" title="View all posts filed under Social Media">Social Media</a>
</li>
<li class="cat-item cat-item-8"><a href="http://t-clicks.com/blog/?category_name=startups" title="View all posts filed under Startups">Startups</a>
</li>
<li class="cat-item cat-item-9"><a href="http://t-clicks.com/blog/?category_name=tech-gadgets" title="View all posts filed under Tech & Gadgets">Tech & Gadgets</a>
</li>
<li class="cat-item cat-item-10"><a href="http://t-clicks.com/blog/?category_name=video" title="View all posts filed under Video">Video</a>
li>
<li class="cat-item cat-item-11"><a href="http://t-clicks.com/blog/?category_name=tutorials" title="View all posts filed under Tutorials">Tutorials</a>
</li>
</ul>
Code:
#cat-nav li{ background: red; }
/* normally, each <li> will have a red background. */
#cat-nav:hover li{ background: blue; }
/* when you mouse over the menu, they will have blue backgrounds */
#cat-nav li:hover{ background: green; }
/* and the specific link you hover over will have a green background. */
/* this won't work "as is" in all browsers (e.g., IE), but it helps explain the concept. */
also:
"active" only applies during the click. after the mouse button goes up, the item is no longer active. if you want the new background to remain after the click, you'd need to use a different solution (likely involving javascript).
Bookmarks