/ Published in: JavaScript

Removes the margin-right spacing from the item in a line of items. This works cross browser unlike the CSS last-child selector (which doesn't work in IE6 or IE7).
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
jQuery('.className:last-child').css({marginRight:"0"});
Comments
