Possible Duplicate:
How do I select the “last child” with a specific class name in CSS?
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:
div:last-of-type { margin-right:0; }
but i want something like
div.class:last-of-type { margin-right:0; }
How to do this ?
` `.a { border: 1px solid black;} .a:last-of-type { border: none }` does not work. Remove `` making it `
` and it worked for me. – Rock Lee Jul 31 '18 at 03:17