title: CSS: How to say .class:last-of-type [classes, not elements!]
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6401268/how-do-i-select-the-last-child-with-a-specific-class-name-in-css">How do I select the “last child” with a specific class name in CSS?</a>  </p>
  </blockquote>
  
  
  
  <p>As the title says, i want to adress css rules to the last element of a certain type which has a certain class. The following code works perfectly:</p>
  
  <pre><code>div:last-of-type { margin-right:0; }
  </code></pre>
  
  <p>but i want something like</p>
  
  <pre><code>div.class:last-of-type { margin-right:0; }
  </code></pre>
  
  <p>How to do this ?</p>