jQuery to extend CSS - even spacing between objects

/ Published in: JavaScript
Save to your folder(s)

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).

Copy this code and paste it in your HTML
  1. jQuery('.className:last-child').css({marginRight:"0"});

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.