Posted By

redconservatory on 04/02/11


css jquery

Versions (?)

jQuery to extend CSS - even spacing between objects

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

  1. jQuery('.className:last-child').css({marginRight:"0"});

Report this snippet  

You need to login to post a comment.