![]() |
Navigation Menu: a:hover styling works, a.selected does not
Hello,
I have a simple navigation bar that I would like to change color over hover and remain that color when selected. The a:hover works great but the a.selected does not (even though the class="selected" does work for each individual page) This is how I have the list set up: Code:
<ul id="kids_nav">Code:
#kids_nav li a{ |
if the class="selected" works on all of the pages, in what exact area it doesn't work? I'm confused.
|
Hello huhnej31,
#maggie.selected isn't right. Try it like this instead - Code:
#kids_nav li a#maggie:hover, .selected{Here's another way of highlighting a menu item to show where you are. |
Its easy to give hover text or background colour using CSS. give perticuler background colour or text colour on mouse hover class.
|
| All times are GMT +1. The time now is 12:48 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.