Cookies can spread too much if the dough is too warm or if there's too much fat or sugar. Refrigerating the dough before baking can help. If they're not spreading enough, it might be due to the dough being too cold or over-measured flour.