In article Timo Nentwig wrote:
Lauri Raittila wrote: http://www.student.oulu.fi/~laurirai...st/ol2col.html
Works on Opera 7.5b1, should work Opera 6+ and mozilla and anything that
supports more than one "+" selectors.
Can you explain the + selector. Why does the first "li" apply to all
Thats normal selector.
+ is adjecent selector. li + li selects li element just after li element.
li + li + li selects last one from 3 li elements.
li's and "li + li + ..." apply to the the first n li's only?
No, it aplies to all li elements that have same amount of li elements
before it as there is before in selector.
And would I select the n-th li?
Yes, this method look nice on example page with few items. But if you
have dozens, or if there is many lists with different number of items, it
comes clumsy. And if you don't know the number of items (for example in
userstylesheets), you can't use this method
CSS3 will most likely have n-th-child and odd and even selectors, which
may help some.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
I'm looking for work | Etsin työtä