Tim Snadden schrieb am 03.04.2010 23:23
> 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 }
>
> Note that this won't work in IE6 due to lack of support for this
> selector. Or, how about this?
>
> .container div li {background-image: none; }
> .container div.want_this li, .container li { background:
> url(bullet.png) left 5px no-repeat; }
Thanks, both work.
Unfortunately I had to go back to my non-ideal solution, since this got
to same complexity (handling ol etc). There is nothing worse than
bad/incomplete markup, will try to fix it there.
Is there a good tutorial on selectors around, that is ONE document to
print (and read in spring sun)? I found either pretty basic tutorials,
or ones scattered over many small pages.
> The fact that you are using 'li li' in your selectors suggests nested
> lists but that's not what you indicated above.
Sorry, the posting got a little inconsistent while it developed :)
Best, Ingo
______________________________________________________________________
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/