title: jQuery: select the last 4 items in the list
body: <p>I have a list of images/ text links,</p>
  
  <pre><code>&lt;ul&gt;
  &lt;li&gt;link 1&lt;/li&gt;
  &lt;li&gt;link 2&lt;/li&gt;
  &lt;li&gt;link 3&lt;/li&gt;
  &lt;li&gt;link 4&lt;/li&gt;
  
  &lt;li&gt;link 5&lt;/li&gt;
  &lt;li&gt;link 6&lt;/li&gt;
  &lt;li&gt;link 7&lt;/li&gt;
  &lt;li&gt;link 8&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>and I style the list in my .css file,</p>
  
  <pre><code>li {
    float:left;
    margin:0px 5px 5px 0px; 
  }
  </code></pre>
  
  <p>but then I want the last 4 items in the list to be displayed without the 5px space at their margin bottom. so I would like to use jQuery to select these last 4 item and change their css style to marginBottom:0px;</p>
  
  <p>The problem is that this is how jQuery selects the last item:</p>
  
  <pre><code>li:last
  </code></pre>
  
  <p>but what about the last 4? or maybe the last 5, or 6?</p>
  
  <p>Thanks.</p>