you could do:

.divs:not(:first-child)

--
Fábio Miranda Costa
Solucione Sistemas
Engenheiro de interfaces
Twitter: fabiomiranda
http://solucione.info


On Sun, Jun 6, 2010 at 5:21 PM, אריה גלזר <[email protected]> wrote:

> n+1 means every odd numbered element. i think you need to use
> :not(:first-child) but i'm not sure this is doable.
> but you can create a Pseudo selector:
> Selector.Pseudo['not-first'] = function(el){return
> el.getParent().firstChild!=el}
>
> and then do :not-first
>
>
> On Sun, Jun 6, 2010 at 10:28 PM, batman42ca <[email protected]> wrote:
>
>> Am I missing something obvious or should I be able to use pseudo
>> selectors in $$ to skip the first element?
>>
>> I tried this:
>> (node ".divs" is a css class I placed in each div, I didn't mistake it
>> for a tag name)
>>
>>  var a = $$(".divs:nth-child(n+1)");
>>
>> But it doesn't work. I even tried
>>
>>  var a = $$(".divs:nth-child(1n+1)");
>>
>> Here's a mooshell demo: http://mootools.net/shell/jjcRS/
>>
>>
>
>
> --
> Arieh Glazer
> אריה גלזר
> 052-5348-561
> 5561
>

Reply via email to