[thelist] contextual selector with class filter does not work?

David Dorward evolt at david.us-lot.org
Fri Jan 2 13:43:56 CST 2004


On Fri, 2004-01-02 at 19:28, Scott Blanchard wrote:

With nested lists

> The problem is that I want all links whose immediate parent belongs to the 
> "toplevel" class to be white. All other links, including those nested under 
> the toplevel class, should be black.. What is the proper css to make that 
> happen?

li.toplevel a {
  color: black;
}

li.toplevel li a {
  color: black;
}

will probably do the trick

-- 
David Dorward                                 <http://dorward.me.uk/>


More information about the thelist mailing list