Previous Message
Next Message

Overriding Inherited List Definitions

Sent by Bob Easton on 30 October 2004 03:03


TMH Design wrote:

> Hello, I found a tutorial on make a navigation bar out of a list. The list
> is such that it has some nice nested sub list dropdowns that work great. The
> issue I am having is that the styling properties are applied to ALL list in
> the site, whereas they should only apply to the navigation. I have tried to
> change that, but with no success. So, I'm left with trying to style other
> list in the site individually. ...
> 
Tom,
You need to ensure that the definitions that affect all lists are 
restricted to only the nav div.  You can do that by preceeding thoes 
definitions with #nav, like this:

li li {...

becomes

#nav li li {...

-- 
Bob Easton
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: