Sent by cj on 31 March 2008 16:04
On 3/30/08, Karen Davis [EMAIL-REMOVED]> wrote:
> I have a page with a left side submenu navigation list. The IN THIS SECTION text
> is an anchor within an li, but I want to make that anchor *not* hover as the
> rest of the list does, and I don't know how to accomplish this.
i see a couple things that might cause confusion.
1. your background is being set on the <li>, not the <a>, so when you
put your "no-hover" class on the <a>, you'd be looking at "fixing" a
different element than you have css for on non-hovering.
2. just because you name the <a> no-hover class "no-hover", that
doesn't mean it'll target the hover style by default. :) you'd need
to make your css say ".no-hover:hover".
if you're interested in suggestions, i'd put your "no-hover" class on
the <li> and go from there - ".no-hover a:hover". your "no-hover"
class right now contains directions that are supposed to be putting
themselves on the <li> to start with (namely the list style), so
moving the class to the <li> will align your css with what i think
you've got going on in your brain. hopefully that will get the css
behaving in what you were trying to do in the first place.
best of luck!
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/