If you want to select the first element or :not, there are several choices:
:not(:first):nth-child(1)first():first-child- etc…
What are the options for selecting the first ‘two, three, and X’ elements?
AND
:not(the first two, three, and X?)
can the :not() be accomplished by using the JS !
If the elements you want to exclude follow consecutively, you could use
slice():JS Fiddle demo.
This will select the first three elements, the
0is the zero-based index of the first element to start, and the second, the3, is the zero-based index of the element at which to stop, collecting.The second number can also be a negative number and, if so, will count from the end of the returned set of elements:
JS Fiddle demo.
References:
slice().