>On 4/04/2010, at 8:05 AM, Ingo wrote:
> >Is there a way to select "first-level"
> > ul li only? I ask for the first selector here:
> >
> > # specific whitlist
> > .container ul li,   # make it first level only (don't select if
> > wrapped)

At 4/3/2010 02:23 PM, Tim Snadden wrote:
>You could use a child selector for this... e.g.
>
>.container >  ul li { background: url(bullet.png) left 5px no-repeat; }
>.container div ul li { background-image: none }


If you want to specify only the top-level list items in the top-level 
list, I believe it should be:

         .container > ul > li {}

Omitting either > will apply the rule to any descendant list item.

Without using child selectors (to accommodate older browsers), I 
don't see any way to do it but:

         .container li
         {
                 background: url(bullet.png) left 5px no-repeat;
         }
         .container li li
         {
                 background-image: none;
         }

Regards,

Paul
__________________________

Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com 

______________________________________________________________________
css-discuss [[email protected]]
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/

Reply via email to