diff --git a/src/jquery.columnizer.js b/src/jquery.columnizer.js index 7536e0b..6be00df 100644 --- a/src/jquery.columnizer.js +++ b/src/jquery.columnizer.js @@ -740,9 +740,9 @@ $col = $inBox.children().eq(i); $col.width(optionWidth + "px"); if(i === 0){ - $col.addClass(prefixTheClassName("first")); + $col.removeClass(prefixTheClassName("last")); }else if(i==$inBox.children().length-1){ - $col.addClass(prefixTheClassName("last")); + $col.removeClass(prefixTheClassName("first")); }else{ $col.removeClass(prefixTheClassName("first")); $col.removeClass(prefixTheClassName("last"));