WordPress – Portfolio – Change number of items in a row

I guess if you change this line of code it will make 4 portfolio items in a row.

change this :

.portfolio_item { width: 20%; margin-bottom: 40px; }

to this :

.portfolio_item { width: 25%; margin-bottom: 40px; }

divide 100 to no of columns you want. e.g 100/4 = 25 so 25% for 4 items in a row and 100/5 = 20 which is already set to 20%.